You've already forked node-redis
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:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user