Skip to content

Commit

Permalink
fix(test): update depth_workspace test with --depth workspace flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ShoyuVanilla committed Dec 12, 2024
1 parent 9501b2d commit 867aab2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/testsuite/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1888,15 +1888,12 @@ fn depth_workspace() {
.file("c/src/lib.rs", "")
.build();

p.cargo("tree")
p.cargo("tree --depth workspace")
.with_stdout_data(str![[r#"
a v1.0.0 ([ROOT]/foo/a)
b v0.1.0 ([ROOT]/foo/b)
├── c v0.1.0 ([ROOT]/foo/c)
│ ├── otherdep v1.0.0
│ └── somedep v1.0.0
└── somedep v1.0.0
└── c v0.1.0 ([ROOT]/foo/c)
c v0.1.0 ([ROOT]/foo/c) (*)
Expand Down

0 comments on commit 867aab2

Please sign in to comment.