test: fix test-net-persistent-keepalive for AIX · nodejs/node@f3594e7 · GitHub
Skip to content

Commit f3594e7

Browse files
Imran Iqbalrvagg
authored andcommitted
test: fix test-net-persistent-keepalive for AIX
Fixed an intermittent issue on AIX where the 600ms timeout was reached before the 'connection' event was fired. This resulted in a failure as serverConnection would be undefined and the assert.equal would throw an error. Changed the flow of the test so that the timeout is only set after a connection has been made. PR-URL: #3646 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 325c4c7 commit f3594e7

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

test/parallel/test-net-persistent-keepalive.js

Lines changed: 10 additions & 10 deletions

0 commit comments

Comments
 (0)