test: http-client-timeout error assert arguments
PR-URL: https://github.com/nodejs/node/pull/24130 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
parent
dc3bc8928f
commit
6bbf9e07a1
@ -24,7 +24,7 @@ server.listen(0, common.localhostIPv4, common.mustCall(() => {
|
||||
}));
|
||||
req.on('timeout', common.mustCall(() => req.abort()));
|
||||
req.on('error', common.mustCall((err) => {
|
||||
assert.strictEqual('socket hang up', err.message);
|
||||
assert.strictEqual(err.message, 'socket hang up');
|
||||
server.close();
|
||||
}));
|
||||
}));
|
||||
|
Loading…
x
Reference in New Issue
Block a user