GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: favor strict equality in pummel net tests · nodejs/node@cc9bb34

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/pummel
    • test-net-connect-econnrefused.js
    • test-net-connect-memleak.js
    • test-net-many-clients.js
    • test-net-timeout.js
    • test-net-timeout2.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/pummel/test-net-connect-econnrefused.js‎

Copy file name to clipboardExpand all lines: test/pummel/test-net-connect-econnrefused.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function pummel() {
1919
net.createConnection(common.PORT).on('error', function(err) {
2020
assert.equal(err.code, 'ECONNREFUSED');
2121
if (--pending > 0) return;
22-
if (rounds == ROUNDS) return check();
22+
if (rounds === ROUNDS) return check();
2323
rounds++;
2424
pummel();
2525
});
Collapse file

‎test/pummel/test-net-connect-memleak.js‎

Copy file name to clipboardExpand all lines: test/pummel/test-net-connect-memleak.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var before = 0;
1717
before = process.memoryUsage().rss;
1818

1919
net.createConnection(common.PORT, '127.0.0.1', function() {
20-
assert(junk.length != 0); // keep reference alive
20+
assert.notStrictEqual(junk.length, 0); // keep reference alive
2121
setTimeout(done, 10);
2222
global.gc();
2323
});
Collapse file

‎test/pummel/test-net-many-clients.js‎

Copy file name to clipboardExpand all lines: test/pummel/test-net-many-clients.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ server.listen(common.PORT, function() {
6969
var finished_clients = 0;
7070
for (var i = 0; i < concurrency; i++) {
7171
runClient(function() {
72-
if (++finished_clients == concurrency) server.close();
72+
if (++finished_clients === concurrency) server.close();
7373
});
7474
}
7575
});
Collapse file

‎test/pummel/test-net-timeout.js‎

Copy file name to clipboardExpand all lines: test/pummel/test-net-timeout.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ echo_server.listen(common.PORT, function() {
5252
client.write('hello\r\n');
5353
}, 500);
5454

55-
if (exchanges == 5) {
55+
if (exchanges === 5) {
5656
console.log('wait for timeout - should come in ' + timeout + ' ms');
5757
starttime = new Date();
5858
console.dir(starttime);
Collapse file

‎test/pummel/test-net-timeout2.js‎

Copy file name to clipboardExpand all lines: test/pummel/test-net-timeout2.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var server = net.createServer(function(socket) {
1414
var interval = setInterval(function() {
1515
counter++;
1616

17-
if (counter == seconds) {
17+
if (counter === seconds) {
1818
clearInterval(interval);
1919
server.close();
2020
socket.destroy();

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.