From d778f9e1f0404f91c950404c4d01dcc3e46720ba Mon Sep 17 00:00:00 2001 From: Emily Kolar Date: Fri, 12 Oct 2018 11:38:17 -0700 Subject: [PATCH] test: fix order of assert args in client response domain test PR-URL: https://github.com/nodejs/node/pull/23604 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Sakthipriyan Vairamani --- test/parallel/test-http-client-response-domain.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http-client-response-domain.js b/test/parallel/test-http-client-response-domain.js index 0a32e929141e45..617dc729acb71f 100644 --- a/test/parallel/test-http-client-response-domain.js +++ b/test/parallel/test-http-client-response-domain.js @@ -44,8 +44,8 @@ server.listen(common.PIPE, function() { function test() { - d.on('error', common.mustCall(function(err) { - assert.strictEqual('should be caught by domain', err.message); + d.on('error', common.mustCall((err) => { + assert.strictEqual(err.message, 'should be caught by domain'); })); const req = http.get({