Skip to content

Commit 7e5a618

Browse files
committed
Clean up again
1 parent 9e3af1f commit 7e5a618

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

load-test/scripts/loadTest.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ import {
2121
// Expects an object with onMessage and onClose event handler properties.
2222
import metricsReporter from './scannerLoadTestMetrics.js';
2323
// Keep set to false unless you have configured a custom metrics reporter for your test.
24-
const CUSTOM_METRICS = false;
24+
const USE_CUSTOM_METRICS = false;
2525

2626
// Change these options to increase the user goal or time to run the test.
27-
export const options = getTestOptions(
28-
/* User goal */ 1000,
29-
/* High load time minutes */ 4
27+
getTestOptions(
28+
/* User goal */ 1,
29+
/* High load time minutes */ 1
3030
);
3131

3232
// Change this to test different code
@@ -37,7 +37,7 @@ const MINI_APP_TYPE = MiniAppType.CONSOLE
3737
// false to send as many requests as possible.
3838
const SHOULD_SLEEP = false;
3939

40-
// ************** END SETTINGS **************************************************************************
40+
// ************** END SETTINGS **********************************************************************
4141

4242
const exceptionCounter = new Counter("exceptions");
4343
const errorCounter = new Counter("errors");
@@ -119,7 +119,7 @@ function onSocketConnect(socket, requestStartTime, websocketStartTime, sessionId
119119
exceptionCounter.add(1);
120120
}
121121

122-
if (CUSTOM_METRICS) {
122+
if (USE_CUSTOM_METRICS) {
123123
metricsReporter.onMessage(socket, parsedData);
124124
}
125125
});
@@ -141,7 +141,7 @@ function onSocketConnect(socket, requestStartTime, websocketStartTime, sessionId
141141
sessionsOver10Seconds.add(1);
142142
}
143143

144-
if (CUSTOM_METRICS) {
144+
if (USE_CUSTOM_METRICS) {
145145
metricsReporter.onClose();
146146
}
147147
} else {

0 commit comments

Comments
 (0)