init project
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import http from "k6/http";
|
||||
import { check } from "k6";
|
||||
|
||||
export const options = {
|
||||
vus: 5,
|
||||
duration: "20s",
|
||||
};
|
||||
|
||||
export default function () {
|
||||
const payload = JSON.stringify({ query: "{ __typename }" });
|
||||
const res = http.post("http://127.0.0.1:4000/graphql", payload, {
|
||||
headers: { "Content-Type": "application/json" },
|
||||
});
|
||||
check(res, { "status 200": (r) => r.status === 200 });
|
||||
}
|
||||
Reference in New Issue
Block a user