diff options
Diffstat (limited to 'test/parallel/test-net-connect-destroy.js')
-rw-r--r-- | test/parallel/test-net-connect-destroy.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/parallel/test-net-connect-destroy.js b/test/parallel/test-net-connect-destroy.js new file mode 100644 index 0000000000..73fdb988f9 --- /dev/null +++ b/test/parallel/test-net-connect-destroy.js @@ -0,0 +1,7 @@ +'use strict'; +const common = require('../common'); +const net = require('net'); + +const socket = new net.Socket(); +socket.on('close', common.mustCall()); +socket.destroy(); |