Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Oct 7, 2024
1 parent b3571c4 commit 78c54d5
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions crates/rattler/src/install/clobber_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -902,10 +902,7 @@ mod tests {
// check that the files are there
assert_check_files(
target_prefix.path(),
&[
"clobber.txt",
"another-clobber.txt",
],
&["clobber.txt", "another-clobber.txt"],
);

let mut prefix_records = PrefixRecord::collect_from_prefix(target_prefix.path()).unwrap();
Expand All @@ -928,12 +925,13 @@ mod tests {
platform: Platform::current(),
};


let install_driver = InstallDriver::builder()
.with_prefix_records(&prefix_records)
.finish();

install_driver.pre_process(&transaction, target_prefix.path()).unwrap();

install_driver
.pre_process(&transaction, target_prefix.path())
.unwrap();
let dl_client = reqwest_middleware::ClientWithMiddleware::from(reqwest::Client::new());
for op in &transaction.operations {
execute_operation(
Expand All @@ -951,10 +949,7 @@ mod tests {
// But also, this is a reinstall so the files should just be overwritten.
assert_check_files(
target_prefix.path(),
&[
"clobber.txt",
"another-clobber.txt",
],
&["clobber.txt", "another-clobber.txt"],
);
}

Expand Down

0 comments on commit 78c54d5

Please sign in to comment.