Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Jul 4, 2023
1 parent 7ab2602 commit 89ed2f7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/rattler-bin/src/commands/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use rattler::{
package_cache::PackageCache,
};
use rattler_conda_types::{
Channel, ChannelConfig, GenericVirtualPackage, MatchSpec, Platform, PrefixRecord,
RepoDataRecord, Version, PackageRecord,
Channel, ChannelConfig, GenericVirtualPackage, MatchSpec, PackageRecord, Platform,
PrefixRecord, RepoDataRecord, Version,
};
use rattler_networking::{AuthenticatedClient, AuthenticationStorage};
use rattler_repodata_gateway::fetch::{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ mod tests {
#[case] packages: Vec<RepoDataRecord>,
#[case] expected_roots: &[&str],
) {
let mut roots = get_graph_roots(&packages);
let mut roots = get_graph_roots(&packages, None);
roots.sort();
assert_eq!(roots.as_slice(), expected_roots);
}
Expand Down
1 change: 1 addition & 0 deletions crates/rattler_repodata_gateway/src/sparse/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ mod test {
),
],
package_names,
None,
)
.await
.unwrap()
Expand Down
3 changes: 2 additions & 1 deletion crates/rattler_solve/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ mod test_libsolv {
Channel::from_str("dummy", &ChannelConfig::default()).unwrap(),
"dummy".to_string(),
path,
None,
)
.unwrap()
}
Expand Down Expand Up @@ -203,7 +204,7 @@ mod test_libsolv {

let names = specs.iter().map(|s| s.name.clone().unwrap());
let available_packages =
SparseRepoData::load_records_recursive(&sparse_repo_datas, names).unwrap();
SparseRepoData::load_records_recursive(&sparse_repo_datas, names, None).unwrap();

let solver_task = SolverTask {
available_packages: available_packages
Expand Down

0 comments on commit 89ed2f7

Please sign in to comment.