From 3137d5f01131e5e69d620b64de91e0fc9c84553c Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 22 May 2020 00:43:47 +0900 Subject: [PATCH] test: multiple processes may crash in crashReporter test (#23695) --- spec-main/api-crash-reporter-spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec-main/api-crash-reporter-spec.ts b/spec-main/api-crash-reporter-spec.ts index c33beee66846..707c3502be0e 100644 --- a/spec-main/api-crash-reporter-spec.ts +++ b/spec-main/api-crash-reporter-spec.ts @@ -556,7 +556,7 @@ ifdescribe(!isLinuxOnArm && !process.mas && !process.env.DISABLE_CRASH_REPORTER_ const newFileAppeared = waitForNewFileInDir(reportsDir); crash(crashingProcess, remotely); const newFiles = await newFileAppeared; - expect(newFiles).to.have.length(1); + expect(newFiles.length).to.be.greaterThan(0); expect(newFiles[0]).to.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\.dmp$/); }); @@ -575,7 +575,7 @@ ifdescribe(!isLinuxOnArm && !process.mas && !process.env.DISABLE_CRASH_REPORTER_ const newFileAppeared = waitForNewFileInDir(reportsDir); crash(crashingProcess, remotely); const newFiles = await newFileAppeared; - expect(newFiles).to.have.length(1, `Files that appeared: ${JSON.stringify(newFiles)}`); + expect(newFiles.length).to.be.greaterThan(0); expect(newFiles[0]).to.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\.dmp$/); }); });