From 7652ae98296ed46220b5505f491afcb464d096bd Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 16 Aug 2016 15:30:26 -0700 Subject: [PATCH] test: favor strict equality check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change use of `!=` in assertion to `assert.notStrictEqual()` check. PR-URL: https://github.com/nodejs/node/pull/8130 Reviewed-By: Anna Henningsen Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell --- test/pummel/test-tls-connect-memleak.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pummel/test-tls-connect-memleak.js b/test/pummel/test-tls-connect-memleak.js index 227d9c56f4366e..41e16ec76e2eee 100644 --- a/test/pummel/test-tls-connect-memleak.js +++ b/test/pummel/test-tls-connect-memleak.js @@ -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(); });