diff --git a/test/unit/connection-failure-test.js b/test/unit/connection-failure-test.js index ffd27e71f..b9ce5268c 100644 --- a/test/unit/connection-failure-test.js +++ b/test/unit/connection-failure-test.js @@ -90,10 +90,9 @@ describe('Connection failure handling', function() { connection.close(); assert.instanceOf(err, ConnectionError); - assert.strictEqual('Connection lost - socket hang up', err.message); - assert.instanceOf(err.cause, Error); - assert.strictEqual('socket hang up', err.cause.message); + // We're not checking the actual error message here. + // The error message will end up being different between operating systems. done(); }); @@ -210,10 +209,9 @@ describe('Connection failure handling', function() { connection.close(); assert.instanceOf(err, ConnectionError); - assert.strictEqual('Connection lost - socket hang up', err.message); - assert.instanceOf(err.cause, Error); - assert.strictEqual('socket hang up', err.cause.message); + // We're not checking the actual error message here. + // The error message will end up being different between operating systems. done(); });