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 <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
  • 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.