Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 487de19

Browse filesBrowse files
Trottr-52
authored andcommitted
test: address flaky test-http-client-timeout-event
Use common.platformTimeout() to make test more reliable on Raspberry Pi. Fixes: #2555 PR-URL: #3968 Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Roman Klauke <romaaan.git@gmail.com>
1 parent 3becac2 commit 487de19
Copy full SHA for 487de19

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-http-client-timeout-event.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-http-client-timeout-event.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ server.listen(options.port, options.host, function() {
3333
setTimeout(function() {
3434
req.destroy();
3535
assert.equal(timeout_events, 1);
36-
}, 100);
36+
}, common.platformTimeout(100));
3737
setTimeout(function() {
3838
req.end();
39-
}, 50);
39+
}, common.platformTimeout(50));
4040
});

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.