Skip to content

Commit

Permalink
remove duplicateConnectionId test
Browse files Browse the repository at this point in the history
  • Loading branch information
andydunstall committed Aug 31, 2022
1 parent 21b1a52 commit 5ae8539
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions test/realtime/message.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -666,45 +666,6 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, helper, async
});
});

it('duplicateConnectionId', function (done) {
var realtime = helper.AblyRealtime({ log: { level: 4 } }),
channel = realtime.channels.get('duplicateConnectionId'),
received = 0;

channel.subscribe(function (_msg) {
received++;
});
channel.once('attached', function () {
realtime.connection.connectionManager.activeProtocol.getTransport().onProtocolMessage(
createPM({
action: 15,
channel: channel.name,
id: 'foo:0',
connectionSerial: 0,
messages: [{ name: null, data: null }],
})
);

realtime.connection.connectionManager.activeProtocol.getTransport().onProtocolMessage(
createPM({
action: 15,
channel: channel.name,
id: 'bar:0',
connectionSerial: 0,
messages: [{ name: null, data: null }],
})
);

try {
expect(received).to.equal(1);
} catch (err) {
closeAndFinish(done, realtime, err);
return;
}
closeAndFinish(done, realtime);
});
});

/* Authenticate with a clientId and ensure that the clientId is not sent in the Message
and is implicitly added when published */
it('implicit_client_id_0', function (done) {
Expand Down

0 comments on commit 5ae8539

Please sign in to comment.