aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-http2-respond-with-file-connection-abort.js
diff options
context:
space:
mode:
authorSam Ruby <rubys@intertwingly.net>2018-07-21 12:04:51 -0400
committerMatteo Collina <hello@matteocollina.com>2018-07-25 14:37:45 -0700
commit838001d4b3042ac8deba0686f21e86e9b7c7fc0e (patch)
treebb735276a4e83b3604034f935e47da65954bc620 /test/parallel/test-http2-respond-with-file-connection-abort.js
parentc75f36f105f7f6026eb1477a9312bfbaadac0deb (diff)
downloadandroid-node-v8-838001d4b3042ac8deba0686f21e86e9b7c7fc0e.tar.gz
android-node-v8-838001d4b3042ac8deba0686f21e86e9b7c7fc0e.tar.bz2
android-node-v8-838001d4b3042ac8deba0686f21e86e9b7c7fc0e.zip
test: don't fail http2 abort test if 'data' is called multiple times
PR-URL: https://github.com/nodejs/node/pull/21925 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'test/parallel/test-http2-respond-with-file-connection-abort.js')
-rw-r--r--test/parallel/test-http2-respond-with-file-connection-abort.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http2-respond-with-file-connection-abort.js b/test/parallel/test-http2-respond-with-file-connection-abort.js
index 6c8337ba8b..ed200e5b39 100644
--- a/test/parallel/test-http2-respond-with-file-connection-abort.js
+++ b/test/parallel/test-http2-respond-with-file-connection-abort.js
@@ -24,7 +24,7 @@ server.listen(0, common.mustCall(() => {
const req = client.request();
req.on('response', common.mustCall(() => {}));
- req.on('data', common.mustCallAtLeast(() => {
+ req.once('data', common.mustCall(() => {
net.Socket.prototype.destroy.call(client.socket);
server.close();
}));