Skip to content

Commit

Permalink
test(resolver): Verify wildcard dep isn't used to find rejected versions
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Dec 11, 2024
1 parent 6d116f3 commit b38e7c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testsuite/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3202,6 +3202,7 @@ fn ignores_unknown_index_version(expected: impl IntoData) {

#[cargo_test]
fn unknown_index_version_error() {
Package::new("bar", "0.0.1").publish();
// If the version field is not understood, it is ignored.
Package::new("bar", "1.0.1")
.schema_version(u32::MAX)
Expand Down Expand Up @@ -3238,6 +3239,7 @@ required by package `foo v0.1.0 ([ROOT]/foo)`

#[cargo_test]
fn unknown_index_version_with_msrv_error() {
Package::new("bar", "0.0.1").publish();
// If the version field is not understood, it is ignored.
Package::new("bar", "1.0.1")
.schema_version(u32::MAX)
Expand Down

0 comments on commit b38e7c2

Please sign in to comment.