Permalink
Browse files

test: fix and improve error message

Add unexpected value to dgram socket type assertion and fix the size
entry.

PR-URL: #18449
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information...
kcaulfield94 authored and BridgeAR committed Feb 1, 2018
1 parent c3ff899 commit 18e728474031911650992fee9cd113be0d00d67e
Showing with 4 additions and 2 deletions.
  1. +4 −2 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();
}));
}

0 comments on commit 18e7284

Please sign in to comment.