Skip to content

Commit 7a14403

Browse files
committed
Correct workspace test assumption.
Signed-off-by: David Calavera <[email protected]>
1 parent 0063847 commit 7a14403

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

tests/testsuite/workspaces.rs

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ fn members_include_path_deps() {
10461046
}
10471047

10481048
#[cargo_test]
1049-
fn new_warns_you_this_will_not_work() {
1049+
fn new_creates_members_list() {
10501050
let p = project()
10511051
.file(
10521052
"Cargo.toml",
@@ -1063,20 +1063,7 @@ fn new_warns_you_this_will_not_work() {
10631063
let p = p.build();
10641064

10651065
p.cargo("new --lib bar")
1066-
.with_stderr(
1067-
"\
1068-
warning: compiling this new package may not work due to invalid workspace configuration
1069-
1070-
current package believes it's in a workspace when it's not:
1071-
current: [..]
1072-
workspace: [..]
1073-
1074-
this may be fixable by ensuring that this crate is depended on by the workspace \
1075-
root: [..]
1076-
[..]
1077-
[CREATED] library `bar` package
1078-
",
1079-
)
1066+
.with_stderr(" Created library `bar` package")
10801067
.run();
10811068
}
10821069

0 commit comments

Comments
 (0)