Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit a96f355

Browse files
Fix intermittent failure on 2 test cases because they test the wrong druation
1 parent 7d42a04 commit a96f355

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/integration/wait.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ describe('integration/wait', {timeout: 60000, slow: 10000}, () => {
7171
isNumber(event.metaData.checkOverhead);
7272
isAtLeast(event.timing.begin.time, transaction.timing.begin.time);
7373
isAtMost(event.timing.end.time, transaction.timing.end.time);
74-
isAtLeast(event.timing.duration, 100);
74+
isAtLeast(transaction.timing.duration, 100);
7575
});
7676

7777
specify('Failing a wait expression', async () => {
@@ -199,6 +199,6 @@ describe('integration/wait', {timeout: 60000, slow: 10000}, () => {
199199
isAtMost(events[2].timing.begin.time, thirdTrans.timing.end.time);
200200
isAtLeast(events[2].timing.end.time, thirdTrans.timing.begin.time);
201201
isAtMost(events[2].timing.end.time, thirdTrans.timing.end.time);
202-
isAtLeast(events[2].timing.duration, 100);
202+
isAtLeast(thirdTrans.timing.duration, 100);
203203
});
204204
});

0 commit comments

Comments
 (0)