Switch to regex match
This commit is contained in:
parent
1714376ab1
commit
fc1ec40bde
|
|
@ -464,7 +464,7 @@ await page1.GotoAsync("about:blank?foo");`);
|
||||||
expect(exitCode).toBe(130);
|
expect(exitCode).toBe(130);
|
||||||
} else {
|
} else {
|
||||||
// If the runner is slow enough, the process will be forcibly terminated by the signal
|
// If the runner is slow enough, the process will be forcibly terminated by the signal
|
||||||
expect(signal === 'SIGINT' || signal === 'SIGTERM').toBeTruthy();
|
expect(signal).toMatch(/SIGINT|SIGTERM/);
|
||||||
}
|
}
|
||||||
expect(fs.existsSync(storageFileName)).toBeTruthy();
|
expect(fs.existsSync(storageFileName)).toBeTruthy();
|
||||||
expect(fs.existsSync(harFileName)).toBeTruthy();
|
expect(fs.existsSync(harFileName)).toBeTruthy();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue