diff options
author | Bamieh <ahmadbamieh@gmail.com> | 2017-11-21 20:33:16 +0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-02-16 18:32:59 +0100 |
commit | 941bc93f2229d4a28c3d3246878c7fd4fbf443ec (patch) | |
tree | 63db8a75e2e7940878ef308f205e6395a7e03f2e /test/parallel/test-timers-socket-timeout-removes-other-socket-unref-timer.js | |
parent | 96c57fbfaa8c1644648fa1414c9ad131b1320b60 (diff) | |
download | android-node-v8-941bc93f2229d4a28c3d3246878c7fd4fbf443ec.tar.gz android-node-v8-941bc93f2229d4a28c3d3246878c7fd4fbf443ec.tar.bz2 android-node-v8-941bc93f2229d4a28c3d3246878c7fd4fbf443ec.zip |
test: wrap countdown callback in common.mustCall
This adds a implicit common.mustCall to the callback provided to
the countdown.
PR-URL: https://github.com/nodejs/node/pull/18506
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-timers-socket-timeout-removes-other-socket-unref-timer.js')
-rw-r--r-- | test/parallel/test-timers-socket-timeout-removes-other-socket-unref-timer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-timers-socket-timeout-removes-other-socket-unref-timer.js b/test/parallel/test-timers-socket-timeout-removes-other-socket-unref-timer.js index 842c818070..5dceb386fd 100644 --- a/test/parallel/test-timers-socket-timeout-removes-other-socket-unref-timer.js +++ b/test/parallel/test-timers-socket-timeout-removes-other-socket-unref-timer.js @@ -33,7 +33,7 @@ const server = net.createServer(function onClient(client) { }); server.listen(0, common.localhostIPv4, common.mustCall(() => { - const countdown = new Countdown(2, common.mustCall(() => server.close())); + const countdown = new Countdown(2, () => server.close()); { const client = net.connect({ port: server.address().port }); |