You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Remove listener if not needed anymore and alawys end a client after a test
This commit is contained in:
@@ -20,6 +20,9 @@ describe("client authentication", function () {
|
||||
var auth = 'porkchopsandwiches';
|
||||
var client = null;
|
||||
|
||||
beforeEach(function () {
|
||||
client = null;
|
||||
});
|
||||
afterEach(function () {
|
||||
client.end();
|
||||
});
|
||||
|
Reference in New Issue
Block a user