node/test/sequential
Rich Trott 8ac9d07805 test: fix flaky test-http-client-timeout-with-data
test-http-client-timeout-with-data has failed here and there in CI on
FreeBSD and OS X. The test has a socket timeout set to 50ms and a timer
set for 100ms. However, they are not necessarily set in the same tick of
the event loop and their ordering is therefore not guaranteed.

Instead of using a timer, this change listens for an event on the
listener to know when the socket timeout has occurred and then runs the
code originally in the timer.

Additional refactoring: Replaced `process.on('exit', ...)` checks with
`common.mustCall()` and replaced usage of `assert.equal()` with
`assert.strictEqual()`.

PR-URL: https://github.com/nodejs/node/pull/10431
Reviewed-By: James M Snell <jasnell@gmail.com>
2017-01-04 10:44:10 -06:00
..
sequential.status
test-buffer-creation-regression.js test: move long-running test to sequential 2016-12-08 02:11:09 +01:00
test-child-process-emfile.js tools: add eslint rule prefer-assert-methods 2016-09-20 16:35:39 -07:00
test-child-process-execsync.js test: add coverage for execFileSync() errors 2016-11-02 06:07:22 -05:00
test-child-process-fork-getconnections.js tools: add eslint rule prefer-assert-methods 2016-09-20 16:35:39 -07:00
test-child-process-pass-fd.js test: prevent workers outliving parent 2016-11-03 05:32:01 -05:00
test-crypto-timing-safe-equal.js test: refactor test-crypto-timing-safe-equal 2016-12-05 03:33:40 +01:00
test-debug-host-port.js
test-debugger-debug-brk.js
test-deprecation-flags.js
test-dgram-pingpong.js
test-fs-watch.js
test-http-regr-gh-2928.js
test-http-server-consumed-timeout.js test: fix freebsd10-64 CI failures 2016-11-03 05:32:06 -05:00
test-init.js test: refactor test-init.js 2017-01-04 10:44:04 -06:00
test-module-loading.js test: invalid package.json causes error when require()ing in directory 2016-12-08 02:11:08 +01:00
test-net-GH-5504.js test: fix flaky test-net-GH-5504 2016-11-07 15:58:08 -06:00
test-net-server-address.js test: cleanup test-net-server-address.js 2016-09-29 11:15:08 -07:00
test-next-tick-error-spin.js test: refactor test-next-tick-error-spin 2016-11-22 06:33:50 +01:00
test-pipe.js test: improve the code in test-pipe.js 2017-01-04 10:44:06 -06:00
test-process-warnings.js tools: add additional ESLint rules 2016-09-20 23:21:10 -04:00
test-regress-GH-784.js
test-regress-GH-877.js
test-regress-GH-897.js test: move timer-dependent test to sequential 2016-11-22 06:32:52 +01:00
test-regress-GH-1697.js
test-regress-GH-1726.js
test-regress-GH-4015.js
test-regress-GH-4027.js
test-repl-timeout-throw.js test: move timer-dependent test to sequential 2016-11-07 15:14:05 -06:00
test-require-cache-without-stat.js
test-stream2-fs.js
test-stream2-stderr-sync.js
test-timers-blocking-callback.js test: fix freebsd10-64 CI failures 2016-11-03 05:32:06 -05:00
test-util-debug.js
test-vm-timeout-rethrow.js
testcfg.py