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 incorrect code for eslint rules (#1367)
* fix code for eslint rules
This commit is contained in:
committed by
Ruben Bridgewater
parent
128ca62346
commit
50b4009005
@@ -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();
|
||||
});
|
||||
|
Reference in New Issue
Block a user