Skip to content

Commit 59a3a7b

Browse files
committed
Disable publish timeout for some tests
Signed-off-by: hi-rustin <[email protected]>
1 parent f6cf5ab commit 59a3a7b

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

tests/testsuite/alt_registry.rs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,16 @@ or use environment variable CARGO_REGISTRIES_ALTERNATIVE_TOKEN",
416416
#[cargo_test]
417417
fn publish_to_alt_registry() {
418418
registry::alt_init();
419-
let p = project().file("src/main.rs", "fn main() {}").build();
419+
let p = project()
420+
.file("src/main.rs", "fn main() {}")
421+
.file(
422+
".cargo/config",
423+
"
424+
[publish]
425+
timeout = 0
426+
",
427+
)
428+
.build();
420429

421430
// Setup the registry by publishing a package
422431
Package::new("bar", "0.0.1").alternative(true).publish();
@@ -425,7 +434,9 @@ fn publish_to_alt_registry() {
425434
p.cargo("login --registry alternative TOKEN").run();
426435

427436
// Now perform the actual publish
428-
p.cargo("publish --registry alternative").run();
437+
p.cargo("publish --registry alternative -Zpublish-timeout")
438+
.masquerade_as_nightly_cargo(&["publish-timeout"])
439+
.run();
429440

430441
validate_alt_upload(
431442
r#"{

0 commit comments

Comments
 (0)