summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/sequential/test-http-max-http-headers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sequential/test-http-max-http-headers.js b/test/sequential/test-http-max-http-headers.js
index f54d238548..39f5033f06 100644
--- a/test/sequential/test-http-max-http-headers.js
+++ b/test/sequential/test-http-max-http-headers.js
@@ -24,7 +24,7 @@ function once(cb) {
}
function finished(client, callback) {
- 'abort error end'.split(' ').forEach((e) => {
+ ['abort', 'error', 'end'].forEach((e) => {
client.on(e, once(() => setImmediate(callback)));
});
}