Skip to content

Commit

Permalink
test: refactor test-http-invalidheaderfield
Browse files Browse the repository at this point in the history
* use common.mustNotCall() to confirm callback is not invoked
* whitespace change per test-writing guide

PR-URL: #13996
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
Trott authored and MylesBorins committed Aug 16, 2017
1 parent f1d91ce commit ac851c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-http-invalidheaderfield.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';
const common = require('../common');

const assert = require('assert');
const EventEmitter = require('events');
const http = require('http');
Expand Down Expand Up @@ -28,7 +29,7 @@ server.listen(0, function() {
port: server.address().port,
headers: {'testing 123': 123}
};
http.get(options, common.noop);
http.get(options, common.mustNotCall());
},
function(err) {
ee.emit('done');
Expand Down

0 comments on commit ac851c4

Please sign in to comment.