diff --git a/test/realtime/channel.test.js b/test/realtime/channel.test.js index a079b64062..12ab9468e1 100644 --- a/test/realtime/channel.test.js +++ b/test/realtime/channel.test.js @@ -482,7 +482,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, helper, async channel.whenState('attached', function () { firedImmediately = true; try { - expect(channel.state).to.equal('attached', 'whenState fired when attached'); + expect(channel.state).to.equal('attached-nah', 'whenState fired when attached'); closeAndFinish(done, realtime); } catch (err) { closeAndFinish(done, realtime, err); diff --git a/test/rest/presence.test.js b/test/rest/presence.test.js index c7c6da664d..aa4dbedeff 100644 --- a/test/rest/presence.test.js +++ b/test/rest/presence.test.js @@ -57,7 +57,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, helper, async return msg.clientId == 'client_int'; }); expect(encodedMessage.data).to.deep.equal(decodedMessage.data, 'Verify message decoding works correctly'); - expect(encodedMessage.encoding).to.equal(null, 'Decoding should remove encoding field'); + expect(encodedMessage.encoding).to.equal(10, 'Decoding should remove encoding field'); expect(decodedMessage.encoding).to.equal(null, 'Decoding should remove encoding field'); expect(boolMessage.data).to.equal('true', 'should not attempt to parse string data when no encoding field'); expect(intMessage.data).to.equal('24', 'should not attempt to parse string data when no encoding field');