Skip to content

Commit

Permalink
Correct workspace test assumption.
Browse files Browse the repository at this point in the history
Signed-off-by: David Calavera <[email protected]>
  • Loading branch information
calavera committed Oct 9, 2023
1 parent 0063847 commit 7a14403
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions tests/testsuite/workspaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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();
}

Expand Down

0 comments on commit 7a14403

Please sign in to comment.