Skip to content

Commit e80422f

Browse files
committed
update sampling test for consistent results
1 parent ee130d1 commit e80422f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/sampling.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ describe('Sampling Tests:', function() {
312312

313313
for(let x = 0; x<requests;x++) {
314314
result = await new Promise(r => api_rules.run(_event,context,(e,res) => { r(res) }))
315-
await Promise.delay(Math.random()*25)
315+
await Promise.delay(20)
316316
} // end for loop
317317

318318
// End the timer and restore console.log
@@ -350,7 +350,7 @@ describe('Sampling Tests:', function() {
350350

351351
for(let x = 0; x<requests;x++) {
352352
result = await new Promise(r => api_rules.run(_event,context,(e,res) => { r(res) }))
353-
await Promise.delay(Math.random()*25)
353+
await Promise.delay(20)
354354
} // end for loop
355355

356356
// End the timer and restore console.log
@@ -389,7 +389,7 @@ describe('Sampling Tests:', function() {
389389

390390
for(let x = 0; x<requests;x++) {
391391
result = await new Promise(r => api_rules.run(_event,context,(e,res) => { r(res) }))
392-
await Promise.delay(Math.random()*25)
392+
await Promise.delay(20)
393393
// await Promise.delay(20)
394394
} // end for loop
395395

0 commit comments

Comments
 (0)