| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 33994d8 commit 5aa3100
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,8 +42,9 @@ function doRequest() { | |||
| 42 | 42 | timeout_events += 1; | |
| 43 | 43 | const duration = Date.now() - start; | |
| 44 | 44 | // The timeout event cannot be precisely timed. It will delay | |
| 45 | - // some number of milliseconds, so test it in second units. | ||
| 46 | - assert.strictEqual(duration / 1000 | 0, HTTP_CLIENT_TIMEOUT / 1000); | ||
| 45 | + // some number of milliseconds. | ||
| 46 | + assert.ok(duration >= HTTP_CLIENT_TIMEOUT, | ||
| 47 | + `${duration} < ${HTTP_CLIENT_TIMEOUT}`); | ||
| 47 | 48 | })); | |
| 48 | 49 | req.end(); | |
| 49 | 50 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments