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
}
}
#[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();
}
}