Skip to content

Commit 67c9723

Browse files
authored
fix(test): speculative attempt to fix trace viewer test flakiness (3) (microsoft#15342)
1 parent 80f281e commit 67c9723

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ import '@web/common.css';
2424
(async () => {
2525
applyTheme();
2626
if (window.location.protocol !== 'file:') {
27-
await new Promise(f => setTimeout(f, 500));
27+
if (window.location.href.includes('isUnderTest=true'))
28+
await new Promise(f => setTimeout(f, 1000));
2829
navigator.serviceWorker.register('sw.bundle.js');
2930
if (!navigator.serviceWorker.controller) {
3031
await new Promise<void>(f => {

0 commit comments

Comments
 (0)