Skip to content

Commit

Permalink
Make intentional failure unit test more widely compatible
Browse files Browse the repository at this point in the history
On Mac (maybe elsewhere) this fails with an aggregate error of IPv6 +
IPv4 errors, so the message is empty. Checking the code should be more
compatible everywhere I think.
  • Loading branch information
pimterry committed Jun 13, 2024
1 parent 32a96d8 commit a1a1352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit-tests.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ describe("Usbmux-client unit tests", () => {

const deviceQueryResult = await client.getDevices().catch(e => e);
expect(deviceQueryResult).to.be.instanceOf(Error);
expect(deviceQueryResult.message).to.contain("ECONNREFUSED");
expect(deviceQueryResult.code).to.equal("ECONNREFUSED");

await startServer(port);

Expand Down

0 comments on commit a1a1352

Please sign in to comment.