Skip to content

Commit

Permalink
fixing k6 test exports and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jrk12b committed Aug 25, 2024
1 parent 9cffe6f commit f310639
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
import http from 'k6/http';
import { sleep, check } from 'k6';

const k6_thresholds = {
export const k6_thresholds = {
http_req_duration: ['p(99)<8000'], // 99 percent of response times must be below 2000ms
http_req_failed: ['rate<0.005'], // http errors should be less than 0.5%
checks: ['rate>0.99'], // the rate of successful checks should be higher than 99%
http_reqs: ['rate>0.5'], // the rate of requests per second should be greater than 0.5
};

exports.k6_thresholds = k6_thresholds;

export function k6_test_requests() {
const activitiesRoute = 'http://localhost:8000/api/activities';
const activitiesNamesRoute = 'http://localhost:8000/api/activities/names';
Expand Down

0 comments on commit f310639

Please sign in to comment.