test: add mustCall to net-connect-buffer test
PR-URL: https://github.com/nodejs/node/pull/27446 Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
757f3f8b2c
commit
73a686f1bb
@ -33,11 +33,11 @@ const tcp = net.Server(common.mustCall((s) => {
|
|||||||
buf += d;
|
buf += d;
|
||||||
});
|
});
|
||||||
|
|
||||||
s.on('end', function() {
|
s.on('end', common.mustCall(function() {
|
||||||
console.error('SERVER: end', buf);
|
console.error('SERVER: end', buf);
|
||||||
assert.strictEqual(buf, "L'État, c'est moi");
|
assert.strictEqual(buf, "L'État, c'est moi");
|
||||||
s.end();
|
s.end();
|
||||||
});
|
}));
|
||||||
}));
|
}));
|
||||||
|
|
||||||
tcp.listen(0, common.mustCall(function() {
|
tcp.listen(0, common.mustCall(function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user