Skip to content

Commit

Permalink
test: add mustCall to net-connect-buffer test
Browse files Browse the repository at this point in the history
PR-URL: #27446
Reviewed-By: Weijia Wang <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Yongsheng Zhang <[email protected]>
Reviewed-By: Yorkie Liu <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
pd4d10 authored and targos committed Apr 29, 2019
1 parent cfc7bdd commit af29ae0
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit af29ae0

Please sign in to comment.