summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-timeout-server-2.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-tls-timeout-server-2.js')
-rw-r--r--test/parallel/test-tls-timeout-server-2.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-tls-timeout-server-2.js b/test/parallel/test-tls-timeout-server-2.js
index a16ce33167..dc3d52da01 100644
--- a/test/parallel/test-tls-timeout-server-2.js
+++ b/test/parallel/test-tls-timeout-server-2.js
@@ -15,10 +15,11 @@ var options = {
};
var server = tls.createServer(options, function(cleartext) {
- cleartext.setTimeout(50, function() {
+ var s = cleartext.setTimeout(50, function() {
cleartext.destroy();
server.close();
});
+ assert.ok(s instanceof tls.TLSSocket);
});
server.listen(common.PORT, function() {