From 3362ae79dfc350975c12ff05cf9c1e523b6f85b4 Mon Sep 17 00:00:00 2001 From: Kevin Caulfield Date: Thu, 1 Feb 2018 18:57:37 -0500 Subject: [PATCH] test: fix and improve error message Add unexpected value to dgram socket type assertion and fix the size entry. PR-URL: https://github.com/nodejs/node/pull/18449 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater --- test/parallel/test-dgram-createSocket-type.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-dgram-createSocket-type.js b/test/parallel/test-dgram-createSocket-type.js index 54f3aaa0603621..19f4dad9208212 100644 --- a/test/parallel/test-dgram-createSocket-type.js +++ b/test/parallel/test-dgram-createSocket-type.js @@ -52,10 +52,12 @@ validTypes.forEach((validType) => { // note: linux will double the buffer size assert.ok(socket.getRecvBufferSize() === 10000 || socket.getRecvBufferSize() === 20000, - 'SO_RCVBUF not 1300 or 2600'); + 'SO_RCVBUF not 10000 or 20000, ' + + `was ${socket.getRecvBufferSize()}`); assert.ok(socket.getSendBufferSize() === 15000 || socket.getSendBufferSize() === 30000, - 'SO_SNDBUF not 1800 or 3600'); + 'SO_SNDBUF not 15000 or 30000, ' + + `was ${socket.getRecvBufferSize()}`); socket.close(); })); }