From 0434bd4a09519737de132316ad660ec62d90ee87 Mon Sep 17 00:00:00 2001 From: jaspal-yupana Date: Wed, 28 Mar 2018 17:15:59 +0100 Subject: [PATCH] test: removed default message from assert.strictEqual Use the `assert.strictEqual()` default message instead of a static message to include the actual and expected value. PR-URL: https://github.com/nodejs/node/pull/19660 Reviewed-By: Trivikram Kamat Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater Reviewed-By: Matteo Collina Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Rich Trott Reviewed-By: James M Snell --- test/parallel/test-net-server-pause-on-connect.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-net-server-pause-on-connect.js b/test/parallel/test-net-server-pause-on-connect.js index 84cc91d56c3b08..59c39e8816cc5c 100644 --- a/test/parallel/test-net-server-pause-on-connect.js +++ b/test/parallel/test-net-server-pause-on-connect.js @@ -34,7 +34,7 @@ const server1ConnHandler = (socket) => { assert.fail('data event should not have happened yet'); } - assert.strictEqual(data.toString(), msg, 'invalid data received'); + assert.strictEqual(data.toString(), msg); socket.end(); server1.close(); }); @@ -46,12 +46,11 @@ const server1 = net.createServer({ pauseOnConnect: true }, server1ConnHandler); const server2ConnHandler = (socket) => { socket.on('data', function(data) { - assert.strictEqual(data.toString(), msg, 'invalid data received'); + assert.strictEqual(data.toString(), msg); socket.end(); server2.close(); - assert.strictEqual(server1Sock.bytesRead, 0, - 'no data should have been read yet'); + assert.strictEqual(server1Sock.bytesRead, 0); server1Sock.resume(); stopped = false; });