Skip to content

Commit af29ae0

Browse files
pd4d10targos
authored andcommitted
test: add mustCall to net-connect-buffer test
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]>
1 parent cfc7bdd commit af29ae0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-net-connect-buffer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ const tcp = net.Server(common.mustCall((s) => {
3333
buf += d;
3434
});
3535

36-
s.on('end', function() {
36+
s.on('end', common.mustCall(function() {
3737
console.error('SERVER: end', buf);
3838
assert.strictEqual(buf, "L'État, c'est moi");
3939
s.end();
40-
});
40+
}));
4141
}));
4242

4343
tcp.listen(0, common.mustCall(function() {

0 commit comments

Comments
 (0)