Skip to content

Commit

Permalink
squash: nits
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Nov 24, 2016
1 parent e5a0a86 commit 2f73690
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 2f73690

Please sign in to comment.