aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-net-after-close.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-net-after-close.js')
-rw-r--r--test/parallel/test-net-after-close.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/parallel/test-net-after-close.js b/test/parallel/test-net-after-close.js
index 23e265c09a..0750ba0f43 100644
--- a/test/parallel/test-net-after-close.js
+++ b/test/parallel/test-net-after-close.js
@@ -34,6 +34,8 @@ server.listen(0, common.mustCall(function() {
c.on('close', common.mustCall(function() {
console.error('connection closed');
assert.strictEqual(c._handle, null);
+ // Calling functions / accessing properties of a closed socket should not
+ // throw.
c.setNoDelay();
c.setKeepAlive();
c.bufferSize;