1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

fix: silence auth errors on reconnect

This commit is contained in:
Ruben Bridgewater
2017-07-23 14:11:16 -03:00
parent 42e8bd607f
commit 4f7f1adf50
2 changed files with 3 additions and 7 deletions

View File

@@ -260,10 +260,9 @@ describe('client authentication', function () {
password: 'wrong_password',
parser: parser
});
client.on('error', function (err) {
client.once('error', function (err) {
assert.strictEqual(err.message, 'ERR invalid password');
// Make sure no other errors are reported
setTimeout(done, 50);
done();
});
});