You've already forked node-redis
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:
@@ -371,7 +371,7 @@ describe('connection tests', function () {
|
|||||||
if (err.code === 'ENETUNREACH') { // The test is run without a internet connection. Pretent it works
|
if (err.code === 'ENETUNREACH') { // The test is run without a internet connection. Pretent it works
|
||||||
return done();
|
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
|
// The code execution on windows is very slow at times
|
||||||
var add = process.platform !== 'win32' ? 15 : 200;
|
var add = process.platform !== 'win32' ? 15 : 200;
|
||||||
var now = Date.now();
|
var now = Date.now();
|
||||||
|
Reference in New Issue
Block a user