Skip to content

Commit 1dd0205

Browse files
XGHeaventargos
authored andcommitted
test: add mustCall to test-dgram-connect-send-multi-buffer-copy.js
PR-URL: #27465 Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
1 parent 0dfe5be commit 1dd0205

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎test/parallel/test-dgram-connect-send-multi-buffer-copy.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ const onMessage = common.mustCall(common.mustCall((err, bytes) => {
1414
constbuf1=Buffer.alloc(256,'x');
1515
constbuf2=Buffer.alloc(256,'y');
1616

17-
client.on('listening',function(){
17+
client.on('listening',common.mustCall(function(){
1818
consttoSend=[buf1,buf2];
1919
client.connect(client.address().port,common.mustCall(()=>{
2020
client.send(toSend,onMessage);
2121
}));
22-
});
22+
}));
2323

2424
client.on('message',common.mustCall(functiononMessage(buf,info){
2525
constexpected=Buffer.concat([buf1,buf2]);

0 commit comments

Comments
 (0)