Skip to content

Commit

Permalink
More stable timings for TestExecutionStatsScenarioIter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Mirić committed Apr 23, 2021
1 parent 6de6bf3 commit 34a0596
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions core/local/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,9 @@ func TestExecutionStatsScenarioIter(t *testing.T) {
t.Parallel()
script := []byte(`
import exec from 'k6/execution';
import { sleep } from 'k6';
import { randomSeed, sleep } from 'k6';
randomSeed(12345);
// The carr scenario should reuse the two VUs created for the pvu scenario.
export let options = {
Expand All @@ -1501,13 +1503,13 @@ func TestExecutionStatsScenarioIter(t *testing.T) {
carr: {
executor: 'constant-arrival-rate',
exec: 'carr',
rate: 10,
timeUnit: '1s',
rate: 9,
timeUnit: '0.95s',
duration: '1s',
preAllocatedVUs: 2,
maxVUs: 10,
startTime: '2s',
gracefulStop: '0s',
gracefulStop: '100ms',
},
},
};
Expand Down

0 comments on commit 34a0596

Please sign in to comment.