mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
test: favor strict equality in http tests
PR-URL: https://github.com/nodejs/node/pull/8151 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: jasnell - James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
76007079ec
commit
c89b6ee347
17 changed files with 32 additions and 32 deletions
|
@ -18,7 +18,7 @@ var server = http.createServer(function(req, res) {
|
|||
res.write('Hello World');
|
||||
res.end();
|
||||
|
||||
if (++nrequests_completed == nrequests_expected) server.close();
|
||||
if (++nrequests_completed === nrequests_expected) server.close();
|
||||
});
|
||||
server.listen(0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue