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

Improve error message

This commit is contained in:
Ruben Bridgewater
2016-10-31 20:49:06 +01:00
parent 41d26dc0c8
commit 4e98cb9442

View File

@@ -371,7 +371,7 @@ describe('connection tests', function () {
if (err.code === 'ENETUNREACH') { // The test is run without a internet connection. Pretent it works
return done();
}
assert(/Redis connection in broken state: connection timeout.*?exceeded./.test(err.message));
assert(/Redis connection in broken state: connection timeout.*?exceeded./.test(err.message), err.message);
// The code execution on windows is very slow at times
var add = process.platform !== 'win32' ? 15 : 200;
var now = Date.now();