mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
chore(cli): remove problematic snapshot test (#22722)
This test crashes often on windows.
This commit is contained in:
parent
3eaf174bfc
commit
ace25161c7
1 changed files with 0 additions and 23 deletions
23
cli/js.rs
23
cli/js.rs
|
@ -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();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue