diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-05-29 14:38:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 18:38:18 +0000 |
commit | 94f040ac2867706d261e2fe1ec8bc2c4263eb6ab (patch) | |
tree | 5eaed4d41efd8d25da839bc29b8d32554e1a0fca /tests/integration/run_tests.rs | |
parent | fada25b0dd593efee496dabb48ed9cb7a9cb6647 (diff) |
fix: bump cache sqlite dbs to v2 for WAL journal mode change (#24030)
In https://github.com/denoland/deno/pull/23955 we changed the sqlite db
journal mode to WAL. This causes issues when someone is running an old
version of Deno using TRUNCATE and a new version because the two fight
against each other.
Diffstat (limited to 'tests/integration/run_tests.rs')
-rw-r--r-- | tests/integration/run_tests.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/integration/run_tests.rs b/tests/integration/run_tests.rs index f7aaa9daf..55841b901 100644 --- a/tests/integration/run_tests.rs +++ b/tests/integration/run_tests.rs @@ -29,6 +29,8 @@ use util::PathRef; use util::TestContext; use util::TestContextBuilder; +const CODE_CACHE_DB_FILE_NAME: &str = "v8_code_cache_v2"; + itest!(stdout_write_all { args: "run --quiet run/stdout_write_all.ts", output: "run/stdout_write_all.out", @@ -5066,7 +5068,7 @@ fn code_cache_test() { assert!(!output.stderr().contains("V8 code cache hit")); // Check that the code cache database exists. - let code_cache_path = deno_dir.path().join("v8_code_cache_v1"); + let code_cache_path = deno_dir.path().join(CODE_CACHE_DB_FILE_NAME); assert!(code_cache_path.exists()); } @@ -5157,7 +5159,7 @@ fn code_cache_npm_test() { assert!(!output.stderr().contains("V8 code cache hit")); // Check that the code cache database exists. - let code_cache_path = deno_dir.path().join("v8_code_cache_v1"); + let code_cache_path = deno_dir.path().join(CODE_CACHE_DB_FILE_NAME); assert!(code_cache_path.exists()); } @@ -5217,7 +5219,7 @@ fn code_cache_npm_with_require_test() { assert!(!output.stderr().contains("V8 code cache hit")); // Check that the code cache database exists. - let code_cache_path = deno_dir.path().join("v8_code_cache_v1"); + let code_cache_path = deno_dir.path().join(CODE_CACHE_DB_FILE_NAME); assert!(code_cache_path.exists()); } |