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

fix incorrect code for eslint rules (#1367)

* fix code for eslint rules
This commit is contained in:
JinHyuk Kim
2019-02-06 23:19:03 +09:00
committed by Ruben Bridgewater
parent 128ca62346
commit 50b4009005
7 changed files with 92 additions and 91 deletions

View File

@@ -376,7 +376,7 @@ describe('connection tests', function () {
var add = process.platform !== 'win32' ? 15 : 200;
var now = Date.now();
assert(now - time < connect_timeout + add, 'The real timeout time should be below ' + (connect_timeout + add) + 'ms but is: ' + (now - time));
// Timers sometimes trigger early (e.g. 1ms to early)
// Timers sometimes trigger early (e.g. 1ms to early)
assert(now - time >= connect_timeout - 5, 'The real timeout time should be above ' + connect_timeout + 'ms, but it is: ' + (now - time));
done();
});