Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 15, 2024
1 parent 4707d49 commit f01db6a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/cfork.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,7 @@ describe('test/cfork.test.ts', () => {
});
}, (err: any) => {
console.error('[cfork.test.ts] get /hold error: %s', err);
// ECONNRESET on windows
if (process.platform === 'win32') {
assert.match(err.message, /ECONNRESET/);
} else {
assert.match(err.message, /timeout/);
}
assert.match(err.message, /ECONNRESET|timeout/);
return true;
});
});
Expand Down

0 comments on commit f01db6a

Please sign in to comment.