Skip to content

Commit

Permalink
test: favor strict equality check
Browse files Browse the repository at this point in the history
Change use of `!=` in assertion to `assert.notStrictEqual()` check.

PR-URL: #8130
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott authored and evanlucas committed Aug 24, 2016
1 parent 9a393a7 commit 086e57f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/pummel/test-tls-connect-memleak.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ tls.createServer({

const options = { rejectUnauthorized: false };
tls.connect(common.PORT, '127.0.0.1', options, function() {
assert(junk.length != 0); // keep reference alive
assert.notStrictEqual(junk.length, 0); // keep reference alive
setTimeout(done, 10);
global.gc();
});
Expand Down

0 comments on commit 086e57f

Please sign in to comment.