diff options
author | Rich Trott <rtrott@gmail.com> | 2016-08-16 21:11:22 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-08-18 21:05:18 -0700 |
commit | 8ff3d61d8ba90fde01827643db3d87ee97f502e6 (patch) | |
tree | b989fc6e8e876804fc709deb0774c500f304a7c8 /test/pummel/test-net-connect-econnrefused.js | |
parent | a0971b7da0c5440590d982500c4daa8a7ee8b04c (diff) | |
download | android-node-v8-8ff3d61d8ba90fde01827643db3d87ee97f502e6.tar.gz android-node-v8-8ff3d61d8ba90fde01827643db3d87ee97f502e6.tar.bz2 android-node-v8-8ff3d61d8ba90fde01827643db3d87ee97f502e6.zip |
test: favor strict equality in pummel net tests
Favor strict equality checks over loose equality checks in
pummel/test-net-* tests.
PR-URL: https://github.com/nodejs/node/pull/8135
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/pummel/test-net-connect-econnrefused.js')
-rw-r--r-- | test/pummel/test-net-connect-econnrefused.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pummel/test-net-connect-econnrefused.js b/test/pummel/test-net-connect-econnrefused.js index 113b04e31f..2b6dc84f37 100644 --- a/test/pummel/test-net-connect-econnrefused.js +++ b/test/pummel/test-net-connect-econnrefused.js @@ -19,7 +19,7 @@ function pummel() { net.createConnection(common.PORT).on('error', function(err) { assert.equal(err.code, 'ECONNREFUSED'); if (--pending > 0) return; - if (rounds == ROUNDS) return check(); + if (rounds === ROUNDS) return check(); rounds++; pummel(); }); |