Skip to content

Commit 335cda4

Browse files
committed
fix(ci): inject the negative control outside virtual timers
1 parent 0141863 commit 335cda4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/sim/scripts/test-organization-search-e2e.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,9 +1028,9 @@ try {
10281028
predicate: (error) => error.message === 'CI unexpected runtime error negative control',
10291029
})
10301030
await page.evaluate(() => {
1031-
setTimeout(() => {
1031+
queueMicrotask(() => {
10321032
throw new Error('CI unexpected runtime error negative control')
1033-
}, 0)
1033+
})
10341034
})
10351035
await injectedRuntimeError
10361036
await check('The UI completes without unexpected browser runtime errors', async () => {

0 commit comments

Comments
 (0)