chore(test): add additional success condition to SIGINT asset save test

This commit is contained in:
Adam Gastineau 2025-02-11 07:06:55 -08:00
parent 91f46bb5d0
commit 1714376ab1

View file

@ -464,7 +464,7 @@ await page1.GotoAsync("about:blank?foo");`);
expect(exitCode).toBe(130);
} else {
// If the runner is slow enough, the process will be forcibly terminated by the signal
expect(signal).toBe('SIGINT');
expect(signal === 'SIGINT' || signal === 'SIGTERM').toBeTruthy();
}
expect(fs.existsSync(storageFileName)).toBeTruthy();
expect(fs.existsSync(harFileName)).toBeTruthy();