Skip to content

Commit ba51166

Browse files
committed
test: add k6 test js
1 parent bc29ab0 commit ba51166

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

asserts/k6test.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import http from 'k6/http';
2+
import {check, sleep} from 'k6';
3+
4+
export const options = {
5+
rps: 4500,
6+
vus: 10,
7+
duration: '5m',
8+
};
9+
10+
export default function () {
11+
const res = http.get('http://localhost:8082/app/test');
12+
check(res, {
13+
'status is 200': (r) => r.status === 200,
14+
});
15+
sleep(1);
16+
}

0 commit comments

Comments
 (0)