From 04ac8e078fc3c88b39ada15e6330c725e93e4015 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 17 Feb 2017 13:40:31 -0800 Subject: [PATCH] test: add error checking in callback Add assert.ifError() for test-dgram-send-callback-buffer-length. --- test/parallel/test-dgram-send-callback-buffer-length.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/parallel/test-dgram-send-callback-buffer-length.js b/test/parallel/test-dgram-send-callback-buffer-length.js index 76af0e14635be0..8551e97387ea51 100644 --- a/test/parallel/test-dgram-send-callback-buffer-length.js +++ b/test/parallel/test-dgram-send-callback-buffer-length.js @@ -11,6 +11,7 @@ const offset = 20; const len = buf.length - offset; const messageSent = common.mustCall(function messageSent(err, bytes) { + assert.ifError(err); assert.notStrictEqual(bytes, buf.length); assert.strictEqual(bytes, buf.length - offset); client.close();