Skip to content

Commit

Permalink
more isolate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Mar 12, 2019
1 parent 8eba43a commit 68e2089
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/isolate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,12 @@ fn fetch_module_meta_data_and_maybe_compile(
#[cfg(test)]
mod tests {
use super::*;
use crate::cli::Cli;
use crate::flags;
use crate::isolate_init::IsolateInit;
use crate::permissions::DenoPermissions;
use crate::tokio_util;
use crate::tokio_util::panic_on_error;
use futures::future::lazy;
use std::sync::atomic::Ordering;
use std::sync::Arc;

#[test]
fn execute_mod() {
Expand All @@ -210,7 +207,7 @@ mod tests {
if let Err(err) = isolate.execute_mod(&filename, false) {
eprintln!("execute_mod err {:?}", err);
}
panic_on_error(isolate)
tokio_util::panic_on_error(isolate)
}));

let metrics = &state_.metrics;
Expand All @@ -237,7 +234,7 @@ mod tests {
if let Err(err) = isolate.execute_mod(&filename, false) {
eprintln!("execute_mod err {:?}", err);
}
panic_on_error(isolate)
tokio_util::panic_on_error(isolate)
}));

let metrics = &state_.metrics;
Expand Down

0 comments on commit 68e2089

Please sign in to comment.