Skip to content

Commit

Permalink
test: fix assertion arguments order
Browse files Browse the repository at this point in the history
PR-URL: #23787
Reviewed-By: Denys Otrishko <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
Aiden01 authored and rvagg committed Nov 28, 2018
1 parent e2d2ce6 commit 544e64d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-remove-header-stays-removed.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ const server = http.createServer(function(request, response) {
let response = '';

process.on('exit', function() {
assert.strictEqual('beep boop\n', response);
assert.strictEqual(response, 'beep boop\n');
console.log('ok');
});

server.listen(0, function() {
http.get({ port: this.address().port }, function(res) {
assert.strictEqual(200, res.statusCode);
assert.strictEqual(res.statusCode, 200);
assert.deepStrictEqual(res.headers, { date: 'coffee o clock' });

res.setEncoding('ascii');
Expand Down

0 comments on commit 544e64d

Please sign in to comment.