8000 Make ordering randomization optional · mrtial/plotly.js@23fb0b7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 23fb0b7

Browse files
author
Jody McIntyre
committed
Make ordering randomization optional
1 parent 42bdf02 commit 23fb0b7

File tree

Expand file tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/image/load_test

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const BATCH_WAIT = 500;
1313
const REQ_TIMEOUT = 40000;
1414
// Print more messages if true:
1515
const VERBOSE = false;
16+
// Randomize test ordering (otherwise glob sorting is used):
17+
const RANDOMIZE = false;
1618

1719
/**
1820
* Load Tester for imageservers
@@ -57,7 +59,9 @@ if(allReqs.length === 0) {
5759
throw new Error('No requests found in ' + requestDir);
5860
}
5961

60-
allReqs = shuffle(allReqs);
62+
if (RANDOMIZE) {
63+
allReqs = shuffle(allReqs);
64+
}
6165

6266
console.log('test run starting');
6367
runInBatch(allReqs);

0 commit comments

Comments
 (0)
0