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 MylesBorins committed Oct 30, 2018
1 parent 984fac4 commit af6528a
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 af6528a

Please sign in to comment.