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

Make tests more robust and print more details if one might still fail

This commit is contained in:
Ruben Bridgewater
2016-03-07 11:52:48 +01:00
parent 7ddb955517
commit 2913eaccaf
2 changed files with 14 additions and 6 deletions

View File

@@ -591,6 +591,11 @@ describe("The node_redis client", function () {
return done();
}
});
client.on('error', function (err) {
// This is rare but it might be triggered.
// So let's have a robust test
assert.strictEqual(err.code, 'ECONNRESET');
});
});
});