Skip to content

Commit b1e5c9b

Browse files
timfishLuca Forstner
and
Luca Forstner
authored
test(core): Try and improve flakey offline test (#7084)
Co-authored-by: Luca Forstner <luca.forstner@sentry.io>
1 parent 026072e commit b1e5c9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/test/lib/transports/offline.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ describe('makeOfflineTransport', () => {
282282
const { getSendCount, baseTransport } = createTestTransport(
283283
{
284284
statusCode: 429,
285-
headers: { 'x-sentry-rate-limits': '', 'retry-after': '3' },
285+
headers: { 'x-sentry-rate-limits': '', 'retry-after': '1' },
286286
},
287287
{ statusCode: 200 },
288288
);
@@ -300,14 +300,14 @@ describe('makeOfflineTransport', () => {
300300

301301
expect(result).toEqual({
302302
statusCode: 429,
303-
headers: { 'x-sentry-rate-limits': '', 'retry-after': '3' },
303+
headers: { 'x-sentry-rate-limits': '', 'retry-after': '1' },
304304
});
305305

306306
await delay(MIN_DELAY * 2);
307307

308308
expect(getSendCount()).toEqual(1);
309309

310-
await delay(4_000);
310+
await delay(3_000);
311311

312312
expect(getSendCount()).toEqual(2);
313313
expect(queuedCount).toEqual(0);

0 commit comments

Comments
 (0)