From bbc7443724ae3471afdb82b8c542688c51e38bc6 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 7ff79b7b3418fd..6fcf476b650c4c 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(); })); }