diff --git a/test/realtime/failure.test.js b/test/realtime/failure.test.js index 970e7b90e..4f214f32f 100644 --- a/test/realtime/failure.test.js +++ b/test/realtime/failure.test.js @@ -31,9 +31,9 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async var realtime = helper.AblyRealtime({ key: 'this.is:wrong', transports: transports }); realtime.connection.on('failed', function (connectionStateChange) { try { - expect(realtime.connection.errorReason.code).to.equal(40400, 'wrong error reason code on connection.'); + expect(realtime.connection.errorReason.code).to.equal(40101, 'wrong error reason code on connection.'); expect(connectionStateChange.reason.code).to.equal( - 40400, + 40101, 'wrong error reason code on connectionStateChange', ); expect(connectionStateChange.reason).to.deep.equal(