Skip to content

Commit 792fb51

Browse files
authored
Fix flaky test: sendImmediately should not stop the schedule (#6520)
1 parent 2b9011e commit 792fb51

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/libraries/core/tests/usage.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,9 @@ test('sendImmediately should not stop the schedule', async () => {
441441
expect(logger.getLogs()).toMatch('Sending immediately');
442442
expect(logger.getLogs()).toMatch('Sending report (queue 2)');
443443
logger.clear();
444-
await waitFor(100);
445444
// Let's check if the scheduled send task is still running
446445
await collect(args, {});
447-
await waitFor(40);
446+
await waitFor(60);
448447
expect(logger.getLogs()).toMatch('Sending report (queue 1)');
449448

450449
await hive.dispose();

0 commit comments

Comments
 (0)