Skip to content

Commit

Permalink
fix: test issue fetch transport
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielelpidio committed Jan 27, 2025
1 parent eb565a0 commit 03b18c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/logging/test/unit/transports/fetch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ describe('SimpleFetchTransport', () => {
autoFlush: 1000,
});

transport.log([createLogEvent('first')]);
transport.log([createLogEvent('info', 'first')]);

await vi.advanceTimersByTimeAsync(500);
transport.log([createLogEvent('second')]);
transport.log([createLogEvent('info', 'second')]);

await vi.advanceTimersByTimeAsync(500);
expect(receivedBody).toBeUndefined();
Expand Down

0 comments on commit 03b18c6

Please sign in to comment.