From ace25161c7cbd6e42df82fe8f918efcb8eace9ac Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Tue, 5 Mar 2024 19:11:33 -0700 Subject: [PATCH] chore(cli): remove problematic snapshot test (#22722) This test crashes often on windows. --- cli/js.rs | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/cli/js.rs b/cli/js.rs index 0db132bdbf..85485689bc 100644 --- a/cli/js.rs +++ b/cli/js.rs @@ -17,26 +17,3 @@ pub fn deno_isolate_init() -> Option<&'static [u8]> { None } } - -#[cfg(test)] -mod tests { - use super::*; - - #[test] - fn runtime_snapshot() { - let mut js_runtime = deno_core::JsRuntime::new(deno_core::RuntimeOptions { - startup_snapshot: deno_isolate_init(), - ..Default::default() - }); - js_runtime - .execute_script( - "", - r#" - if (!(bootstrap.mainRuntime && bootstrap.workerRuntime)) { - throw Error("bad"); - } - "#, - ) - .unwrap(); - } -}