diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-12-30 14:57:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-30 14:57:17 +0100 |
commit | 46d76a7562025374600a7f866dfc68c1b7e268e9 (patch) | |
tree | 0681d383781d8a28ac7ea23d75f22b1faeea0208 /cli/js/tls_test.ts | |
parent | df1665a8fc92168c3eb115a768ecfeccbe575e18 (diff) |
upgrade: Tokio 0.2 (#3418)
Diffstat (limited to 'cli/js/tls_test.ts')
-rw-r--r-- | cli/js/tls_test.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/js/tls_test.ts b/cli/js/tls_test.ts index 0fee79978..be3d54503 100644 --- a/cli/js/tls_test.ts +++ b/cli/js/tls_test.ts @@ -166,7 +166,10 @@ testPerm({ read: true, net: true }, async function dialAndListenTLS(): Promise< assert(conn.remoteAddr != null); assert(conn.localAddr != null); await conn.write(response); - conn.close(); + // TODO(bartlomieju): this might be a bug + setTimeout(() => { + conn.close(); + }, 0); } ); |