Skip to content

Commit 2f73690

Browse files
committed
squash: nits
1 parent e5a0a86 commit 2f73690

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/parallel/test-dgram-send-empty-packet.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict';
22
const common = require('../common');
3+
const assert = require('assert');
34

45
if (common.isOSX) {
56
common.skip('because of 17894467 Apple bug');
@@ -23,8 +24,9 @@ client.bind(0, common.mustCall(function() {
2324

2425
function callback(firstArg) {
2526
// If client.send() callback, firstArg should be null.
26-
// If client.on('message') listener, firstArg should be the buffer.
27+
// If client.on('message') listener, firstArg should be a 0-length buffer.
2728
if (firstArg instanceof Buffer) {
29+
assert.strictEqual(firstArg.length, 0);
2830
clearInterval(interval);
2931
client.close();
3032
}

0 commit comments

Comments
 (0)