Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Nov 1, 2024
1 parent cf23e27 commit 4eb7ec2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/solver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1367,10 +1367,7 @@ fn test_snapshot_union_requirements() {
#[test]
fn test_root_constraints() {
let provider = BundleBoxProvider::from_packages(&[
("icons", 2, vec![]),
("icons", 1, vec![]),
("intl", 5, vec![]),
("intl", 3, vec![]),
("union", 1, vec!["icons"]),
]);

Expand All @@ -1381,12 +1378,12 @@ fn test_root_constraints() {
let mut snapshot_provider = snapshot.provider();

let union_req = snapshot_provider.add_package_requirement(union_name_id, "*");
let icons_req = snapshot_provider.add_package_requirement(union_name_id, "5");
let union_constraint = snapshot_provider.add_package_requirement(union_name_id, "5");

assert_snapshot!(solve_for_snapshot(
snapshot_provider,
&[union_req],
&[icons_req]
&[union_constraint]
));
}

Expand Down

0 comments on commit 4eb7ec2

Please sign in to comment.