Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
squash: nits
  • Loading branch information
Trott committed Nov 24, 2016
commit 2f73690877263e1e499696f7e9aa8cfa3aabcc13
4 changes: 3 additions & 1 deletion test/parallel/test-dgram-send-empty-packet.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';
const common = require('../common');
const assert = require('assert');

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

function callback(firstArg) {
// If client.send() callback, firstArg should be null.
// If client.on('message') listener, firstArg should be the buffer.
// If client.on('message') listener, firstArg should be a 0-length buffer.
if (firstArg instanceof Buffer) {
assert.strictEqual(firstArg.length, 0);
clearInterval(interval);
client.close();
}
Expand Down