test: update evaluate-no-stall test to get a proper error (#6973)
This test is flaky, and gives us "expected true, got false". We should see the actual error message instead.
This commit is contained in:
parent
aa2546592d
commit
e707207d6f
|
|
@ -48,7 +48,9 @@ test.describe('non-stalling evaluate', () => {
|
||||||
if (error === 4)
|
if (error === 4)
|
||||||
return;
|
return;
|
||||||
// Testing this as a race.
|
// Testing this as a race.
|
||||||
const success = error.message === 'Frame does not yet have a main execution context' || error.message === 'Frame is currently attempting a navigation';
|
expect([
|
||||||
expect(success).toBeTruthy();
|
'Frame does not yet have a main execution context',
|
||||||
|
'Frame is currently attempting a navigation'
|
||||||
|
]).toContain(error.message);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue