Skip to content

Commit

Permalink
ts compiler block_on in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Oct 4, 2019
1 parent 6753d73 commit 05eb0d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/compilers/ts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ mod tests {
state: ThreadSafeState,
source_file: &SourceFile,
) -> Result<CompiledModule, ErrBox> {
self.compile_async(state, source_file).wait()
tokio_util::block_on(self.compile_async(state, source_file))
}

fn bundle_sync(
Expand All @@ -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))
}
}

Expand Down

0 comments on commit 05eb0d5

Please sign in to comment.