diff --git a/test/parallel/test-tls-net-connect-prefer-path.js b/test/parallel/test-tls-net-connect-prefer-path.js index 1b8231664dce38..cefeb5d4714e70 100644 --- a/test/parallel/test-tls-net-connect-prefer-path.js +++ b/test/parallel/test-tls-net-connect-prefer-path.js @@ -52,7 +52,7 @@ function testLib(lib, cb) { })); client.on('end', common.mustCall(() => { const resp = Buffer.concat(bufs).toString(); - assert.strictEqual(`${libName(lib)}:${unixServer.address()}`, resp); + assert.strictEqual(resp, `${libName(lib)}:${unixServer.address()}`); tcpServer.close(); unixServer.close(); cb();