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-http2-no-more-streams.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-http2-no-more-streams.js')
-rw-r--r-- | test/parallel/test-http2-no-more-streams.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http2-no-more-streams.js b/test/parallel/test-http2-no-more-streams.js index dd06a709f2..ff0c8baa14 100644 --- a/test/parallel/test-http2-no-more-streams.js +++ b/test/parallel/test-http2-no-more-streams.js @@ -23,10 +23,10 @@ server.listen(0, common.mustCall(() => { assert.strictEqual(client.state.nextStreamID, nextID); - const countdown = new Countdown(2, common.mustCall(() => { + const countdown = new Countdown(2, () => { server.close(); client.close(); - })); + }); { // This one will be ok |