Package: node-date-now / 1.0.1-3

fix_tests.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: fix wrong assumption in test, making it flaky
Forwarded: https://github.com/Raynos/date-now/pull/6
Author: Jérémy Lal <kapouer@melix.org>
Last-Update: 2019-01-26
--- a/test/index.js
+++ b/test/index.js
@@ -22,7 +22,7 @@
     var ts = time()
     var ats = now()
 
-    assert.ok(ts >= bts - before + 40)
+    assert.ok(ts >= 40)
     assert.ok(ts <= ats - after + 40)
 
     setTimeout(function () {
@@ -30,7 +30,7 @@
         var ts = time()
         var ats = now()
 
-        assert.ok(ts >= bts - before + 40)
+        assert.ok(ts >= 40)
         assert.ok(ts <= ats - after + 40)
 
         assert.end()