test(registry): Ensure cache doesn't prevent schema errors

This commit is contained in:
Ed Page 2024-12-12 09:16:22 -06:00
parent 4412b0a332
commit 6c5d34cfd5

View File

@ -3233,6 +3233,17 @@ fn unknown_index_version_error() {
location searched: `dummy-registry` index (which is replacing registry `crates-io`)
required by package `foo v0.1.0 ([ROOT]/foo)`
"#]])
.run();
p.cargo("generate-lockfile")
.with_status(101)
.with_stderr_data(str![[r#"
[UPDATING] `dummy-registry` index
[ERROR] failed to select a version for the requirement `bar = "^1.0"`
version 1.0.1 requires a Cargo version that supports index version 4294967295
location searched: `dummy-registry` index (which is replacing registry `crates-io`)
required by package `foo v0.1.0 ([ROOT]/foo)`
"#]])
.run();
}