summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2024-03-05 19:11:33 -0700
committerGitHub <noreply@github.com>2024-03-05 19:11:33 -0700
commitace25161c7cbd6e42df82fe8f918efcb8eace9ac (patch)
treef4bc6582dfb31c563dc7b20cebf8741ac3a912bb
parent3eaf174bfc64b7c277899abd44ae3877538028df (diff)
chore(cli): remove problematic snapshot test (#22722)
This test crashes often on windows.
-rw-r--r--cli/js.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/cli/js.rs b/cli/js.rs
index 0db132bdb..85485689b 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(
- "<anon>",
- r#"
- if (!(bootstrap.mainRuntime && bootstrap.workerRuntime)) {
- throw Error("bad");
- }
- "#,
- )
- .unwrap();
- }
-}