Skip to content

Commit 546fc68

Browse files
addaleaxBethGriggs
authored andcommitted
test: fix common.mustNotCall() usage in HTTP test
The argument to `common.mustNotCall()` is a message, not a function. PR-URL: #24750 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 7bd7328 commit 546fc68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/sequential/test-http-max-http-headers.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function test1() {
9696

9797
server.listen(0,common.mustCall(()=>{
9898
constport=server.address().port;
99-
constclient=http.get({port: port},common.mustNotCall(()=>{}));
99+
constclient=http.get({port: port},common.mustNotCall());
100100

101101
client.on('error',common.mustCall((err)=>{
102102
assert.strictEqual(err.code,'HPE_HEADER_OVERFLOW');

0 commit comments

Comments
 (0)