Skip to content

Commit 6d61f5b

Browse files
committed
fix test on CI
1 parent dbe4e9d commit 6d61f5b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/replay/test/integration/rateLimiting.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ describe('Integration | rate-limiting behaviour', () => {
150150

151151
expect(replay['_sendReplay']).toHaveBeenCalledTimes(2);
152152
expect(replay).toHaveLastSentReplay({
153-
events: '[{"data":{"isCheckout":true},"timestamp":1580598035000,"type":2}]',
153+
events: JSON.stringify([
154+
{ data: { isCheckout: true }, timestamp: BASE_TIMESTAMP + DEFAULT_FLUSH_MIN_DELAY * 7, type: 2 },
155+
]),
154156
});
155157

156158
// and let's also emit a new event and check that it is recorded
@@ -235,7 +237,9 @@ describe('Integration | rate-limiting behaviour', () => {
235237

236238
expect(replay['_sendReplay']).toHaveBeenCalledTimes(2);
237239
expect(replay).toHaveLastSentReplay({
238-
events: '[{"data":{"isCheckout":true},"timestamp":1580598065000,"type":2}]',
240+
events: JSON.stringify([
241+
{ data: { isCheckout: true }, timestamp: BASE_TIMESTAMP + DEFAULT_FLUSH_MIN_DELAY * 13, type: 2 },
242+
]),
239243
});
240244

241245
// and let's also emit a new event and check that it is recorded

0 commit comments

Comments
 (0)