Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
doc: sync example in writing-tests.md
Match test/parallel/test-http-agent-null.js
  • Loading branch information
GaryGSC committed Oct 25, 2019
commit f57926fc6d9a4cc0a854652c615d2d55dd997d40
4 changes: 2 additions & 2 deletions doc/guides/writing-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const http = require('http');

const server = http.createServer(common.mustCall((req, res) => {
res.end();
})).listen(0, () => {
})).listen(0, common.mustCall(() => {
Comment thread
trivikr marked this conversation as resolved.
const options = {
agent: null,
port: server.address().port
Expand All @@ -202,7 +202,7 @@ const server = http.createServer(common.mustCall((req, res) => {
res.resume();
server.close();
}));
});
}));

```

Expand Down