Skip to content

Commit

Permalink
fix: test urls
Browse files Browse the repository at this point in the history
  • Loading branch information
asnunes committed Jan 22, 2024
1 parent e319621 commit 4a1ed9b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .k6/test/create-tweets.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ export default function () {
const body = JSON.stringify(tweet);
const headers = { "Content-Type": "application/json" };

http.post(`http://localhost:5144/Tweets`, body, { headers });
http.post(`${process.env.API_URL}/Tweets`, body, { headers });
}
2 changes: 1 addition & 1 deletion .k6/test/create-users.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ export default function () {
});
const headers = { "Content-Type": "application/json" };

http.post("http://localhost:5144/Users", body, { headers });
http.post(`${process.env.API_URL}/Users`, body, { headers });
}
2 changes: 1 addition & 1 deletion .k6/test/get-users.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ const data = new SharedArray("users", function () {
export default function () {
const randomUser = data[Math.floor(Math.random() * data.length)];

http.get(`http://localhost:5144/Users/${randomUser.id}`);
http.get(`${process.env.API_URL}/${randomUser.id}`);
}

0 comments on commit 4a1ed9b

Please sign in to comment.