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 mustCall to net-connect-buffer test
  • Loading branch information
pd4d10 committed Apr 28, 2019
commit 5f0fa39fda5569a195d55968eda04cb05289491e
4 changes: 2 additions & 2 deletions test/parallel/test-net-connect-buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ const tcp = net.Server(common.mustCall((s) => {
buf += d;
});

s.on('end', function() {
s.on('end', common.mustCall(function() {
console.error('SERVER: end', buf);
assert.strictEqual(buf, "L'État, c'est moi");
s.end();
});
}));
}));

tcp.listen(0, common.mustCall(function() {
Expand Down