Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshew committed May 10, 2024
1 parent 11fb2f3 commit 30fe2db
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions crates/turborepo-cache/src/async_cache.rs
Expand Up @@ -272,12 +272,8 @@ mod tests {
// Wait for async cache to process
async_cache.wait().await.unwrap();

let fs_cache_path = repo_root_path.join_components(&[
"node_modules",
".cache",
"turbo",
&format!("{}.tar.zst", hash),
]);
let fs_cache_path =
repo_root_path.join_components(&[".turbo", "cache", &format!("{}.tar.zst", hash)]);

// Confirm that fs cache file does *not* exist
assert!(!fs_cache_path.exists());
Expand Down Expand Up @@ -360,12 +356,8 @@ mod tests {
// Wait for async cache to process
async_cache.wait().await.unwrap();

let fs_cache_path = repo_root_path.join_components(&[
"node_modules",
".cache",
"turbo",
&format!("{}.tar.zst", hash),
]);
let fs_cache_path =
repo_root_path.join_components(&[".turbo", "cache", &format!("{}.tar.zst", hash)]);

// Confirm that fs cache file exists
assert!(fs_cache_path.exists());
Expand Down Expand Up @@ -454,12 +446,8 @@ mod tests {
// Wait for async cache to process
async_cache.wait().await.unwrap();

let fs_cache_path = repo_root_path.join_components(&[
"node_modules",
".cache",
"turbo",
&format!("{}.tar.zst", hash),
]);
let fs_cache_path =
repo_root_path.join_components(&[".turbo", "cache" & format!("{}.tar.zst", hash)]);

Check failure on line 450 in crates/turborepo-cache/src/async_cache.rs

View workflow job for this annotation

GitHub Actions / Turborepo Rust testing on ubuntu

no implementation for `&str & std::string::String`

Check failure on line 450 in crates/turborepo-cache/src/async_cache.rs

View workflow job for this annotation

GitHub Actions / Turborepo Rust testing on macos

no implementation for `&str & std::string::String`

Check failure on line 450 in crates/turborepo-cache/src/async_cache.rs

View workflow job for this annotation

GitHub Actions / Turborepo Rust testing on windows

no implementation for `&str & std::string::String`

// Confirm that fs cache file exists
assert!(fs_cache_path.exists());
Expand Down

0 comments on commit 30fe2db

Please sign in to comment.