0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test
Imran Iqbal 8b57b31299 test: Fix test-cluster-worker-exit.js for AIX
test fails intermittently due to the assertion that the 'disconnect'
event should come before the 'exit' event. This is caused be the
non-deteministic behaviour of pollset_poll[1] on AIX
(see deps/uv/src/unix/aix.c). This API makes no garauntee for the order
in which file descriptors are returned. On linux epoll_wait[2] is used,
which also does not make a garauntee on order of file descriptors
returned. In the failing case we recieve our file descriptor with a
callback of uv__signal_event (which causes JavaScript to receive the
exit event) before our file descriptor with uv__stream_io as its
callback (which in turn causes JavaScript receive the disconnect event).
This change simply removes the assertion that the disconnect event
happens before exit event and processes the test regardless of which
event comes first.

[1] https://www-01.ibm.com/support/knowledgecenter/ssw_aix_71/com.ibm.ai
x.basetrf1/pollset.htm
[2] http://linux.die.net/man/2/epoll_pwait

PR-URL: https://github.com/nodejs/node/pull/3666
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2015-11-13 21:01:18 -08:00
..
abort
addons tools: Use throw new Error() consistently 2015-11-10 21:00:35 -08:00
cctest
debugger test: load common.js in all tests 2015-10-06 15:11:47 -07:00
disabled
fixtures test: stronger crypto in test fixtures 2015-11-13 10:22:42 -08:00
gc
internet test: print helpful err msg on test-dns-ipv6.js 2015-10-25 09:39:02 -07:00
message test: remove flaky status from eval_messages test 2015-10-20 12:16:00 -07:00
parallel test: Fix test-cluster-worker-exit.js for AIX 2015-11-13 21:01:18 -08:00
pummel tools: Use throw new Error() consistently 2015-11-10 21:00:35 -08:00
sequential test: run pipeline flood test in parallel 2015-11-13 20:45:08 -08:00
testpy
timers
.eslintrc test: make common.js mandatory via linting rule 2015-10-06 15:11:58 -07:00
common.js test: wrap assert.fail when passed to callback 2015-10-24 14:42:41 -07:00