Skip to content

Commit 086e57f

Browse files
Trottevanlucas
authored andcommitted
test: favor strict equality check
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>
1 parent 9a393a7 commit 086e57f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/pummel/test-tls-connect-memleak.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ tls.createServer({
2727

2828
const options = { rejectUnauthorized: false };
2929
tls.connect(common.PORT, '127.0.0.1', options, function() {
30-
assert(junk.length != 0); // keep reference alive
30+
assert.notStrictEqual(junk.length, 0); // keep reference alive
3131
setTimeout(done, 10);
3232
global.gc();
3333
});

0 commit comments

Comments
 (0)