Skip to content

Commit bfc6937

Browse files
authored
fix: load test k6 (#2151)
Signed-off-by: OMPRAKASH MISHRA <omprakashmishra3978@gmail.com>
1 parent c03db82 commit bfc6937

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

charts/crunchy/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
global:
22
config:
3-
dbName: app
3+
dbName: app #test
44
crunchy: # enable it for TEST and PROD, for PR based pipelines simply use single postgres
55
enabled: true
66
crunchyImage: artifacts.developer.gov.bc.ca/bcgov-docker-local/crunchy-postgres-gis:ubi8-16.2-3.3-0

tests/load/backend-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { check } from "k6";
2-
import * as http from "k6/http";
2+
import http from "k6/http";
33
import { Rate } from "k6/metrics";
44

55

@@ -21,7 +21,7 @@ function checkStatus(response, checkName, statusCode = 200) {
2121
}
2222

2323

24-
export default function(token) {
24+
export default function() {
2525
let url = `${__ENV.BACKEND_URL}/v1/users`;
2626
let params = {
2727
headers: {

tests/load/frontend-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { check } from "k6";
2-
import * as http from "k6/http";
2+
import http from "k6/http";
33
import { Rate } from "k6/metrics";
44

55

0 commit comments

Comments
 (0)