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 | |
| 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')
| -rw-r--r-- | tests/integration/jsr_tests.rs | 2 | ||||
| -rw-r--r-- | tests/integration/run_tests.rs | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/tests/integration/jsr_tests.rs b/tests/integration/jsr_tests.rs index 7da0cc5b5..eb951d682 100644 --- a/tests/integration/jsr_tests.rs +++ b/tests/integration/jsr_tests.rs @@ -14,7 +14,7 @@ fn fast_check_cache() { let test_context = TestContextBuilder::for_jsr().use_temp_cwd().build(); let deno_dir = test_context.deno_dir(); let temp_dir = test_context.temp_dir(); - let type_check_cache_path = deno_dir.path().join("check_cache_v1"); + let type_check_cache_path = deno_dir.path().join("check_cache_v2"); temp_dir.write( "main.ts", 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()); } |
