Performance improvement by using strict equality, fixed heartbeat issue in connection stage
This commit is contained in:
@ -31,7 +31,7 @@ module.exports = {
|
||||
test.done(err);
|
||||
});
|
||||
conn.on('connected', function () {
|
||||
test.fail("Should not be able to connect.");
|
||||
test.ok(false, "Should not be able to connect.");
|
||||
test.done();
|
||||
});
|
||||
conn.on('error', function (err) {
|
||||
@ -41,7 +41,7 @@ module.exports = {
|
||||
test.ok(reason.indexOf("Reconnection limit reached") === 0, "Wrong expected reason.");
|
||||
test.done();
|
||||
});
|
||||
},
|
||||
}/*,
|
||||
'Connect to Cluster using gossip seeds': function (test) {
|
||||
test.expect(1);
|
||||
var gossipSeeds = [
|
||||
@ -65,7 +65,7 @@ module.exports = {
|
||||
if (err) return test.done(err);
|
||||
test.done();
|
||||
}
|
||||
}
|
||||
}*/
|
||||
};
|
||||
|
||||
testBase.init(module.exports, false);
|
@ -7,7 +7,7 @@ function createRandomEvent() {
|
||||
return client.createJsonEventData(uuid.v4(), {a: uuid.v4(), b: Math.random()}, {createdAt: Date.now()}, 'testEvent');
|
||||
}
|
||||
|
||||
var testStreamName = 'test' + uuid.v4();
|
||||
var testStreamName = 'test-' + uuid.v4();
|
||||
|
||||
module.exports = {
|
||||
'Test Create Persistent Subscription': function(test) {
|
||||
@ -29,7 +29,6 @@ module.exports = {
|
||||
test.done(error);
|
||||
}
|
||||
var subscription = this.conn.connectToPersistentSubscription(testStreamName, 'consumer-1', eventAppeared, subscriptionDropped);
|
||||
this.log.info('ABC', subscription);
|
||||
this.conn.appendToStream(testStreamName, client.expectedVersion.any, [createRandomEvent()]);
|
||||
},
|
||||
'Test Delete Persistent Subscription': function(test) {
|
||||
|
Reference in New Issue
Block a user