Skip to content

Commit 9d21153

Browse files
committed
test(resolver): Verify wildcard dep isn't used to find rejected versions
1 parent 28b5cb1 commit 9d21153

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/testsuite/registry.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3202,6 +3202,7 @@ fn ignores_unknown_index_version(expected: impl IntoData) {
32023202

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

32393240
#[cargo_test]
32403241
fn unknown_index_version_with_msrv_error() {
3242+
Package::new("bar", "0.0.1").publish();
32413243
// If the version field is not understood, it is ignored.
32423244
Package::new("bar", "1.0.1")
32433245
.schema_version(u32::MAX)

0 commit comments

Comments
 (0)