From 93f7f00c956c14620ef031626f124b57397ca867 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 9 Oct 2019 17:22:22 -0400 Subject: Run deno_std tests in github actions --- std/ws/example_client.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'std/ws/example_client.ts') diff --git a/std/ws/example_client.ts b/std/ws/example_client.ts index e3f2f355e..a6649570e 100644 --- a/std/ws/example_client.ts +++ b/std/ws/example_client.ts @@ -44,9 +44,11 @@ async function main(): Promise { } // FIXME: Without this, // sock.receive() won't resolved though it is readable... - await new Promise((resolve): void => { - setTimeout(resolve, 0); - }); + await new Promise( + (resolve): void => { + setTimeout(resolve, 0); + } + ); } await sock.close(1000); // FIXME: conn.close() won't shutdown process... -- cgit v1.2.3