From 3c295cf5ec9a1b3e3759fc6e217e13983e773e98 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Wed, 15 Mar 2023 08:50:11 -0700 Subject: [PATCH] Update tests for publish text changes --- tests/testsuite/alt_registry.rs | 15 ++++++++--- tests/testsuite/cargo_features.rs | 5 +++- .../testsuite/inheritable_workspace_fields.rs | 25 +++++++++++++++---- 3 files changed, 36 insertions(+), 9 deletions(-) diff --git a/tests/testsuite/alt_registry.rs b/tests/testsuite/alt_registry.rs index f5195a7b8..26bd864b0 100644 --- a/tests/testsuite/alt_registry.rs +++ b/tests/testsuite/alt_registry.rs @@ -328,7 +328,10 @@ fn publish_with_registry_dependency() { [FINISHED] [..] [PACKAGED] [..] [UPLOADING] foo v0.0.1 [..] -[UPDATING] `alternative` index +[UPLOADED] foo v0.0.1 to registry `alternative` +note: Waiting for `foo v0.0.1` to be available at registry `alternative`. +You may press ctrl-c to skip waiting; the crate should be available shortly. +[PUBLISHED] foo v0.0.1 at registry `alternative` ", ) .run(); @@ -457,7 +460,10 @@ fn publish_to_alt_registry() { [FINISHED] [..] [PACKAGED] [..] [UPLOADING] foo v0.0.1 [..] -[UPDATING] `alternative` index +[UPLOADED] foo v0.0.1 to registry `alternative` +note: Waiting for `foo v0.0.1` to be available at registry `alternative`. +You may press ctrl-c to skip waiting; the crate should be available shortly. +[PUBLISHED] foo v0.0.1 at registry `alternative` ", ) .run(); @@ -535,7 +541,10 @@ fn publish_with_crates_io_dep() { [FINISHED] [..] [PACKAGED] [..] [UPLOADING] foo v0.0.1 [..] -[UPDATING] `alternative` index +[UPLOADED] foo v0.0.1 to registry `alternative` +note: Waiting for `foo v0.0.1` to be available at registry `alternative`. +You may press ctrl-c to skip waiting; the crate should be available shortly. +[PUBLISHED] foo v0.0.1 at registry `alternative` ", ) .run(); diff --git a/tests/testsuite/cargo_features.rs b/tests/testsuite/cargo_features.rs index 720d221fe..6e5531431 100644 --- a/tests/testsuite/cargo_features.rs +++ b/tests/testsuite/cargo_features.rs @@ -644,7 +644,10 @@ fn publish_allowed() { [FINISHED] [..] [PACKAGED] [..] [UPLOADING] a v0.0.1 [..] -[UPDATING] [..] +[UPLOADED] a v0.0.1 to registry `crates-io` +note: Waiting for `a v0.0.1` to be available at registry `crates-io`. +You may press ctrl-c to skip waiting; the crate should be available shortly. +[PUBLISHED] a v0.0.1 at registry `crates-io` ", ) .run(); diff --git a/tests/testsuite/inheritable_workspace_fields.rs b/tests/testsuite/inheritable_workspace_fields.rs index 1fc4873df..92c96b985 100644 --- a/tests/testsuite/inheritable_workspace_fields.rs +++ b/tests/testsuite/inheritable_workspace_fields.rs @@ -172,7 +172,10 @@ fn inherit_own_workspace_fields() { [FINISHED] [..] [PACKAGED] [..] [UPLOADING] foo v1.2.3 [..] -[UPDATING] [..] +[UPLOADED] foo v1.2.3 to registry `crates-io` +note: Waiting for `foo v1.2.3` to be available at registry `crates-io`. +You may press ctrl-c to skip waiting; the crate should be available shortly. +[PUBLISHED] foo v1.2.3 at registry `crates-io` ", ) .run(); @@ -318,7 +321,10 @@ fn inherit_own_dependencies() { [FINISHED] [..] [PACKAGED] [..] [UPLOADING] bar v0.2.0 [..] -[UPDATING] [..] +[UPLOADED] bar v0.2.0 to registry `crates-io` +note: Waiting for `bar v0.2.0` to be available at registry `crates-io`. +You may press ctrl-c to skip waiting; the crate should be available shortly. +[PUBLISHED] bar v0.2.0 at registry `crates-io` ", ) .run(); @@ -460,7 +466,10 @@ fn inherit_own_detailed_dependencies() { [FINISHED] [..] [PACKAGED] [..] [UPLOADING] bar v0.2.0 [..] -[UPDATING] [..] +[UPLOADED] bar v0.2.0 to registry `crates-io` +note: Waiting for `bar v0.2.0` to be available at registry `crates-io`. +You may press ctrl-c to skip waiting; the crate should be available shortly. +[PUBLISHED] bar v0.2.0 at registry `crates-io` ", ) .run(); @@ -696,7 +705,10 @@ fn inherit_workspace_fields() { [FINISHED] [..] [PACKAGED] [..] [UPLOADING] bar v1.2.3 [..] -[UPDATING] [..] +[UPLOADED] bar v1.2.3 to registry `crates-io` +note: Waiting for `bar v1.2.3` to be available at registry `crates-io`. +You may press ctrl-c to skip waiting; the crate should be available shortly. +[PUBLISHED] bar v1.2.3 at registry `crates-io` ", ) .run(); @@ -850,7 +862,10 @@ fn inherit_dependencies() { [FINISHED] [..] [PACKAGED] [..] [UPLOADING] bar v0.2.0 [..] -[UPDATING] [..] +[UPLOADED] bar v0.2.0 to registry `crates-io` +note: Waiting for `bar v0.2.0` to be available at registry `crates-io`. +You may press ctrl-c to skip waiting; the crate should be available shortly. +[PUBLISHED] bar v0.2.0 at registry `crates-io` ", ) .run();