| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c4be179 commit b063dc9
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,7 +25,7 @@ server.listen(common.PORT, '127.0.0.1', function() { | |||
| 25 | 25 | }; | |
| 26 | 26 | ||
| 27 | 27 | var req = http.get(options, function(res) { | |
| 28 | - if (++responses == N) { | ||
| 28 | + if (++responses === N) { | ||
| 29 | 29 | server.close(); | |
| 30 | 30 | } | |
| 31 | 31 | res.resume(); | |
@@ -47,6 +47,6 @@ server.listen(common.PORT, '127.0.0.1', function() { | |||
| 47 | 47 | }); | |
| 48 | 48 | ||
| 49 | 49 | process.on('exit', function() { | |
| 50 | - assert.ok(responses == N); | ||
| 50 | + assert.strictEqual(responses, N); | ||
| 51 | 51 | assert.ok(maxQueued <= 10); | |
| 52 | 52 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments