aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-http2-response-splitting.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-http2-response-splitting.js')
-rw-r--r--test/parallel/test-http2-response-splitting.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http2-response-splitting.js b/test/parallel/test-http2-response-splitting.js
index 8aae2156e4..1d9b616105 100644
--- a/test/parallel/test-http2-response-splitting.js
+++ b/test/parallel/test-http2-response-splitting.js
@@ -67,7 +67,7 @@ server.listen(0, common.mustCall(() => {
}));
req.resume();
req.on('end', common.mustCall());
- req.on('streamClosed', common.mustCall(maybeClose));
+ req.on('close', common.mustCall(maybeClose));
}
doTest(str, 'location', str);