mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
test(publish): Verify version-exists error in dry-run
This commit is contained in:
parent
1a2df635cb
commit
ae6b279277
@ -150,6 +150,16 @@ fn duplicate_version() {
|
||||
.file("src/main.rs", "fn main() {}")
|
||||
.build();
|
||||
|
||||
p.cargo("publish --dry-run")
|
||||
.replace_crates_io(registry_dupl.index_url())
|
||||
.with_status(101)
|
||||
.with_stderr_data(str![[r#"
|
||||
[UPDATING] crates.io index
|
||||
[ERROR] crate foo@0.0.1 already exists on crates.io index
|
||||
|
||||
"#]])
|
||||
.run();
|
||||
|
||||
p.cargo("publish")
|
||||
.replace_crates_io(registry_dupl.index_url())
|
||||
.with_status(101)
|
||||
|
Loading…
x
Reference in New Issue
Block a user