Skip to content

Commit

Permalink
Merge pull request #1935 from ably/change-error-code-expectation
Browse files Browse the repository at this point in the history
Update expected error code in a test
  • Loading branch information
lawrence-forooghian authored Dec 9, 2024
2 parents 174953b + 8482d8c commit 7984d55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/realtime/failure.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 7984d55

Please sign in to comment.