Skip to content

Commit 7bc1c49

Browse files
committed
fix tests
1 parent a90c32c commit 7bc1c49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/instrumentation-browser-navigation/test/navigation.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,13 +322,13 @@ describe('Browser Navigation Instrumentation', () => {
322322
done();
323323
} else {
324324
// Keep checking for up to 100ms
325-
setTimeout(checkForHashChangeRecord, 10);
325+
setTimeout(checkForHashChangeRecord, 25);
326326
}
327327
};
328328

329329
// Trigger hash change and start checking
330330
location.hash = newHash;
331-
setTimeout(checkForHashChangeRecord, 10);
331+
setTimeout(checkForHashChangeRecord, 25);
332332
});
333333

334334
it('should export LogRecord with type traverse when history.back() triggers a popstate', done => {
@@ -372,7 +372,7 @@ describe('Browser Navigation Instrumentation', () => {
372372
);
373373
window.removeEventListener('popstate', popstateHandler);
374374
done();
375-
}, 10);
375+
}, 50);
376376
};
377377

378378
window.addEventListener('popstate', popstateHandler);

0 commit comments

Comments
 (0)