Skip to content

Commit ac851c4

Browse files
TrottMylesBorins
authored andcommitted
test: refactor test-http-invalidheaderfield
* use common.mustNotCall() to confirm callback is not invoked * whitespace change per test-writing guide PR-URL: #13996 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent f1d91ce commit ac851c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-http-invalidheaderfield.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict';
22
const common = require('../common');
3+
34
const assert = require('assert');
45
const EventEmitter = require('events');
56
const http = require('http');
@@ -28,7 +29,7 @@ server.listen(0, function() {
2829
port: server.address().port,
2930
headers: {'testing 123': 123}
3031
};
31-
http.get(options, common.noop);
32+
http.get(options, common.mustNotCall());
3233
},
3334
function(err) {
3435
ee.emit('done');

0 commit comments

Comments
 (0)