Skip to content

Commit a7feb2c

Browse files
committed
test: don't assert unix errno on windows
1 parent 12f61e5 commit a7feb2c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/integration/node-specific/abort_signal.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,11 @@ describe('AbortSignal support', () => {
689689
await connectStarted;
690690
const findError = await toArray;
691691
expect(findError).to.be.instanceOf(MongoServerSelectionError);
692-
expect(findError).to.match(/ENOTFOUND/);
692+
if (process.platform !== 'win32') {
693+
// linux / mac, unix in general will have this errno set,
694+
// which is generally helpful if this is kept elevated in the error message
695+
expect(findError).to.match(/ENOTFOUND/);
696+
}
693697
await sleep(500);
694698
expect(client.topology).to.exist;
695699
expect(client.topology.description).to.have.property('type', 'Unknown');

0 commit comments

Comments
 (0)