1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Stricten tests by always ending redis with .end(true) if possible

This commit is contained in:
Ruben Bridgewater
2015-11-22 16:56:54 +01:00
parent 0913a4d521
commit 8bf794fb36
57 changed files with 83 additions and 77 deletions

View File

@@ -16,7 +16,7 @@ describe("connection tests", function () {
client = null;
});
afterEach(function () {
client.end();
client.end(true);
});
describe("on lost connection", function () {
@@ -174,7 +174,7 @@ describe("connection tests", function () {
client.on('connect', function () {
assert.strictEqual(client.stream._idleTimeout, -1);
assert.strictEqual(client.stream._events.timeout, undefined);
done();
client.on('ready', done);
});
});