Files
node/test/parallel
Rich Trott 1c6135f431 test: fix flaky http(s)-set-server-timeout tests
The tests include a callback that might not be invoked but is wrapped in
common.mustCall(). Remove the common.mustCall() wrapper and add a
comment explaining that it should not be added.

Add a new test case that sets the timeout to 1ms and waits for both the
connection handler and the timeout handler to be invoked. This version
keeps the common.mustCall() wrapper intact around the connection handler
(although it's mostly semantic and not necessary for the test as the
test will certainly fail or time out if that handler isn't invoked).

PR-URL: https://github.com/nodejs/node/pull/14380
Fixes: https://github.com/nodejs/node/issues/11768
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2017-07-27 23:30:37 +02:00
..
2017-06-21 22:44:23 +02:00
2017-06-21 22:44:23 +02:00
2017-07-19 15:02:25 -04:00
2017-07-19 15:02:06 -04:00
2017-07-19 15:02:06 -04:00
2017-07-24 18:52:38 +02:00
2017-06-10 17:53:17 +02:00
2017-06-21 22:44:23 +02:00
2017-07-19 15:02:25 -04:00
2017-05-01 11:18:51 -07:00
2017-07-19 15:02:25 -04:00
2017-07-24 18:52:38 +02:00
2017-06-21 22:44:23 +02:00
2017-07-19 15:02:25 -04:00
2017-07-19 15:02:06 -04:00
2017-07-19 15:02:25 -04:00
2017-07-19 15:02:06 -04:00
2017-07-19 15:02:25 -04:00
2017-07-24 18:52:38 +02:00
2017-06-21 22:44:23 +02:00
2017-07-19 15:02:06 -04:00
2017-06-21 22:44:23 +02:00
2017-06-21 22:44:23 +02:00
2017-07-19 15:02:25 -04:00
2017-04-30 03:16:30 -04:00
2017-07-19 15:02:25 -04:00
2017-06-21 22:44:23 +02:00
2017-06-21 22:44:23 +02:00
2017-06-21 22:44:23 +02:00
2017-07-19 15:02:25 -04:00
2017-06-21 22:44:23 +02:00
2017-07-19 15:02:25 -04:00
2017-07-19 15:02:06 -04:00
2017-07-19 15:02:06 -04:00
2017-07-19 15:02:06 -04:00
2017-07-19 15:02:06 -04:00
2017-03-25 00:58:11 +09:00
2017-06-21 22:44:23 +02:00
2017-06-21 22:44:23 +02:00
2017-07-19 15:02:06 -04:00
2017-06-21 22:44:23 +02:00