Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: add common.mustCall in test-http-abort-client.js
from code-and-learn
  • Loading branch information
Y1D7NG committed Apr 28, 2019
commit 7e2460e95d4cf6b41d98d784f75d1d3a69b617f4
4 changes: 2 additions & 2 deletions test/parallel/test-http-abort-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ const common = require('../common');
const http = require('http');

let serverRes;
const server = http.Server((req, res) => {
const server = http.Server(common.mustCall((req, res) => {
serverRes = res;
res.writeHead(200);
res.write('Part of my res.');
});
}));

server.listen(0, common.mustCall(() => {
http.get({
Expand Down