Skip to content

Commit 50af620

Browse files
committed
minor startDelay fix
1 parent 6918b99 commit 50af620

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JetStreamDriver.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ function getIntParam(urlParams, key) {
5555
if (typeof(URLSearchParams) !== "undefined") {
5656
const urlParameters = new URLSearchParams(window.location.search);
5757
shouldReport = urlParameters.has('report') && urlParameters.get('report').toLowerCase() == 'true';
58-
if (shouldReport)
58+
globalThis.startDelay = getIntParam(urlParameters, "startDelay");
59+
if (shouldReport && !globalThis.startDelay)
5960
globalThis.startDelay = 4000;
6061
if (urlParameters.has('test'))
6162
customTestList = urlParameters.getAll("test");
62-
globalThis.startDelay = getIntParam(urlParameters, "startDelay");
6363
globalThis.testIterationCount = getIntParam(urlParameters, "iterationCount");
6464
globalThis.testWorstCaseCount = getIntParam(urlParameters, "worstCaseCount");
6565
}

0 commit comments

Comments
 (0)