Skip to content

Commit

Permalink
Fix flaky test: sendImmediately should not stop the schedule (#6520)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela authored Feb 17, 2025
1 parent 2b9011e commit 792fb51
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/libraries/core/tests/usage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,9 @@ test('sendImmediately should not stop the schedule', async () => {
expect(logger.getLogs()).toMatch('Sending immediately');
expect(logger.getLogs()).toMatch('Sending report (queue 2)');
logger.clear();
await waitFor(100);
// Let's check if the scheduled send task is still running
await collect(args, {});
await waitFor(40);
await waitFor(60);
expect(logger.getLogs()).toMatch('Sending report (queue 1)');

await hive.dispose();
Expand Down

0 comments on commit 792fb51

Please sign in to comment.