Skip to content

Commit

Permalink
Fix install_registry_source_dist_cached on Gentoo (#3569)
Browse files Browse the repository at this point in the history
## Summary

Increment the removed file counts in filters
in install_registry_source_dist_cached test, to make it work again on
Gentoo. The tested counts were updated
in 9a92a3a, but the filters were not.
That said, the respective count increased in Gentoo as well, so adjust
both input and output strings. I'm updating Windows as a guesswork,
though I suspect that filter may not be necessary anymore, given that CI
was passing.

## Test Plan

`cargo test` on Gentoo :-).
  • Loading branch information
mgorny committed May 14, 2024
1 parent b20d5ad commit e64c337
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/uv/tests/pip_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1449,13 +1449,13 @@ fn install_registry_source_dist_cached() -> Result<()> {

let filters: Vec<(&str, &str)> = if cfg!(windows) {
// On Windows, the number of files removed is different.
[("Removed 615 files", "Removed 616 files")]
[("Removed 616 files", "Removed 617 files")]
.into_iter()
.chain(context.filters())
.collect()
} else {
// For some Linux distributions, like Gentoo, the number of files removed is different.
[("Removed 614 files", "Removed 616 files")]
[("Removed 615 files", "Removed 617 files")]
.into_iter()
.chain(context.filters())
.collect()
Expand Down

0 comments on commit e64c337

Please sign in to comment.