Skip to content

Commit

Permalink
test: fix order of assert args in client response domain test
Browse files Browse the repository at this point in the history
PR-URL: #23604
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
  • Loading branch information
sheminusminus authored and jasnell committed Oct 17, 2018
1 parent d08ac84 commit d778f9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-client-response-domain.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit d778f9e

Please sign in to comment.