From 05eb0d50dd1bd98d9d8b44d104e898312464cdc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 4 Oct 2019 20:51:57 +0200 Subject: [PATCH] ts compiler block_on in tests --- cli/compilers/ts.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/compilers/ts.rs b/cli/compilers/ts.rs index 1888a69e685ef7..ce031db6215d3d 100644 --- a/cli/compilers/ts.rs +++ b/cli/compilers/ts.rs @@ -674,7 +674,7 @@ mod tests { state: ThreadSafeState, source_file: &SourceFile, ) -> Result { - self.compile_async(state, source_file).wait() + tokio_util::block_on(self.compile_async(state, source_file)) } fn bundle_sync( @@ -683,7 +683,7 @@ mod tests { module_name: String, out_file: String, ) -> Result<(), ErrBox> { - self.bundle_async(state, module_name, out_file).wait() + tokio_util::block_on(self.bundle_async(state, module_name, out_file)) } }