Skip to content

Commit 2cc01f5

Browse files
author
Ruben Bridgewater
committed
Use higher time difference for slow machines in tests
1 parent cc79b2d commit 2cc01f5

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Changelog
22
=========
33

4-
## v.2.3.0 - xx XXX, 2015
4+
## v.2.3.0 - 30 Oct, 2015
55

66
Features
77

test/connection.spec.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,9 @@ describe("connection tests", function () {
351351
};
352352
client.on("ready", function () {
353353
var rest = Date.now() - time;
354-
// Be on the safe side and accept 100ms above the original value
355-
assert(rest - 100 < 500 && rest >= 500);
354+
assert(rest >= 500);
355+
// Be on the safe side and accept 200ms above the original value
356+
assert(rest - 200 < 500);
356357
assert(delayed);
357358
end();
358359
});
@@ -380,8 +381,9 @@ describe("connection tests", function () {
380381
};
381382
client.on("ready", function () {
382383
var rest = Date.now() - time;
383-
// Be on the safe side and accept 100ms above the original value
384-
assert(rest - 100 < 1000 && rest >= 1000);
384+
assert(rest >= 1000);
385+
// Be on the safe side and accept 200ms above the original value
386+
assert(rest - 200 < 1000);
385387
assert(delayed);
386388
end();
387389
});

0 commit comments

Comments
 (0)