Skip to content

Commit

Permalink
test: rename check
Browse files Browse the repository at this point in the history
  • Loading branch information
joaofnds committed Apr 23, 2023
1 parent 87eda80 commit ca722ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions k6/load-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ export function setup() {
http.post("http://localhost:3000/kv/foo/bar");
}

export default function() {
export default function () {
const res = http.get("http://localhost:3000/kv/foo");

check(res, {
"is status 200": (r) => r.status === 200,
"status is 200": (r) => r.status === 200,
"body is 'bar'": (r) => r.body === "bar",
});
}

0 comments on commit ca722ba

Please sign in to comment.