summaryrefslogtreecommitdiff
path: root/tests/integration/run_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-08-26 19:59:17 -0400
committerGitHub <noreply@github.com>2024-08-26 23:59:17 +0000
commitc89a20b42899abff5c3ea84660c8110806c5fbee (patch)
treee9d93ce49b391faf0058bd3223ba72d398f78fc8 /tests/integration/run_tests.rs
parente13230226fe91498b3a5f28a8de6edbe4f164944 (diff)
perf(cache): single cache file for remote modules (#24983)
This changes the global cache to store the cache file for remote modules in one file instead of two.
Diffstat (limited to 'tests/integration/run_tests.rs')
-rw-r--r--tests/integration/run_tests.rs33
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/integration/run_tests.rs b/tests/integration/run_tests.rs
index deec3d1d4..ad20b77e1 100644
--- a/tests/integration/run_tests.rs
+++ b/tests/integration/run_tests.rs
@@ -4973,39 +4973,6 @@ console.log(add(3, 4));
}
#[test]
-fn run_etag_delete_source_cache() {
- let test_context = TestContextBuilder::new()
- .use_temp_cwd()
- .use_http_server()
- .build();
- test_context
- .temp_dir()
- .write("main.ts", "import 'http://localhost:4545/etag_script.ts'");
- test_context
- .new_command()
- .args("cache main.ts")
- .run()
- .skip_output_check();
-
- // The cache is currently stored unideally in two files where one file has the headers
- // and the other contains the body. An issue can happen with the etag header where the
- // headers file exists, but the body was deleted. We need to get the cache to gracefully
- // handle this scenario.
- let deno_dir = test_context.deno_dir().path();
- let etag_script_path = deno_dir.join("deps/http/localhost_PORT4545/26110db7d42c9bad32386735cbc05c301f83e4393963deb8da14fec3b4202a13");
- assert!(etag_script_path.exists());
- etag_script_path.remove_file();
-
- test_context
- .new_command()
- .args("cache --reload --log-level=debug main.ts")
- .run()
- .assert_matches_text(
- "[WILDCARD]Cache body not found. Trying again without etag.[WILDCARD]",
- );
-}
-
-#[test]
fn code_cache_test() {
let test_context = TestContextBuilder::new().use_temp_cwd().build();
let deno_dir = test_context.deno_dir();