From 1714376ab1177f84148c0f403357dc2f9ceb4126 Mon Sep 17 00:00:00 2001 From: Adam Gastineau Date: Tue, 11 Feb 2025 07:06:55 -0800 Subject: [PATCH] chore(test): add additional success condition to SIGINT asset save test --- tests/library/inspector/cli-codegen-2.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/library/inspector/cli-codegen-2.spec.ts b/tests/library/inspector/cli-codegen-2.spec.ts index 6419a6999c..e87e242bfd 100644 --- a/tests/library/inspector/cli-codegen-2.spec.ts +++ b/tests/library/inspector/cli-codegen-2.spec.ts @@ -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();