From 11c7d1d9e275166898f11f22b57e0487cebe479e Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Fri, 29 Sep 2023 11:51:16 +0200 Subject: [PATCH] Fix test --- tests/local.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/local.rs b/tests/local.rs index 5d1c483..6a0faf0 100644 --- a/tests/local.rs +++ b/tests/local.rs @@ -27,13 +27,15 @@ fn builds_local_registry() { versions: Vec, } + let lock = tame_index::utils::flock::FileLock::unlocked(); + for pkg in &md.packages { if pkg.name == "tame-index" { continue; } let ip = krates.entry(pkg.name.clone()).or_insert_with(|| { let ik = sparse - .cached_krate(pkg.name.as_str().try_into().unwrap()) + .cached_krate(pkg.name.as_str().try_into().unwrap(), &lock) .unwrap() .unwrap();