From c91bcf07c30dc3eee6f8c9bf569385c1ade0666d Mon Sep 17 00:00:00 2001 From: David Calavera Date: Mon, 9 Oct 2023 13:48:28 +0200 Subject: [PATCH] Correct workspace test assumption. Signed-off-by: David Calavera --- tests/testsuite/workspaces.rs | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/tests/testsuite/workspaces.rs b/tests/testsuite/workspaces.rs index 4f8997b384c2..94b5142f4c22 100644 --- a/tests/testsuite/workspaces.rs +++ b/tests/testsuite/workspaces.rs @@ -1046,7 +1046,7 @@ fn members_include_path_deps() { } #[cargo_test] -fn new_warns_you_this_will_not_work() { +fn new_creates_members_list() { let p = project() .file( "Cargo.toml", @@ -1063,20 +1063,7 @@ fn new_warns_you_this_will_not_work() { let p = p.build(); p.cargo("new --lib bar") - .with_stderr( - "\ -warning: compiling this new package may not work due to invalid workspace configuration - -current package believes it's in a workspace when it's not: -current: [..] -workspace: [..] - -this may be fixable by ensuring that this crate is depended on by the workspace \ -root: [..] -[..] -[CREATED] library `bar` package -", - ) + .with_stderr(" Created library `bar` package") .run(); }