You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
fix emitting internal auth error on reconnect
This commit is contained in:
@@ -260,9 +260,10 @@ describe('client authentication', function () {
|
||||
password: 'wrong_password',
|
||||
parser: parser
|
||||
});
|
||||
client.once('error', function (err) {
|
||||
client.on('error', function (err) {
|
||||
assert.strictEqual(err.message, 'ERR invalid password');
|
||||
done();
|
||||
// Make sure no other errors are reported
|
||||
setTimeout(done, 50);
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user