summaryrefslogtreecommitdiff
path: root/test/parallel/test-net-connect-options-fd.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-net-connect-options-fd.js')
-rw-r--r--test/parallel/test-net-connect-options-fd.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-net-connect-options-fd.js b/test/parallel/test-net-connect-options-fd.js
index 9cc581243f..9e3859f843 100644
--- a/test/parallel/test-net-connect-options-fd.js
+++ b/test/parallel/test-net-connect-options-fd.js
@@ -69,13 +69,13 @@ const forAllClients = (cb) => common.mustCall(cb, CLIENT_VARIANTS);
})
.on('error', function(err) {
console.error(err);
- assert.fail(null, null, '[Pipe server]' + err);
+ assert.fail(null, null, `[Pipe server]${err}`);
})
.listen({path: serverPath}, common.mustCall(function serverOnListen() {
const getSocketOpt = (index) => {
const handle = new Pipe();
const err = handle.bind(`${prefix}-client-${socketCounter++}`);
- assert(err >= 0, '' + err);
+ assert(err >= 0, String(err));
assert.notStrictEqual(handle.fd, -1);
handleMap.set(index, handle);
console.error(`[Pipe]Bound handle with Pipe ${handle.fd}`);
@@ -90,11 +90,11 @@ const forAllClients = (cb) => common.mustCall(cb, CLIENT_VARIANTS);
assert(handleMap.has(index));
const oldHandle = handleMap.get(index);
assert.strictEqual(oldHandle.fd, this._handle.fd);
- client.write(oldHandle.fd + '');
+ client.write(String(oldHandle.fd));
console.error(`[Pipe]Sending data through fd ${oldHandle.fd}`);
client.on('error', function(err) {
console.error(err);
- assert.fail(null, null, '[Pipe Client]' + err);
+ assert.fail(null, null, `[Pipe Client]${err}`);
});
});