1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

chore(cli): remove problematic snapshot test (#22722)

This test crashes often on windows.
This commit is contained in:
Matt Mastracci 2024-03-05 19:11:33 -07:00 committed by GitHub
parent 3eaf174bfc
commit ace25161c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,26 +17,3 @@ pub fn deno_isolate_init() -> Option<&'static [u8]> {
None 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(
"<anon>",
r#"
if (!(bootstrap.mainRuntime && bootstrap.workerRuntime)) {
throw Error("bad");
}
"#,
)
.unwrap();
}
}