Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Aug 2, 2024
1 parent d217c10 commit 1f17219
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions crates/cli/tests/general_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,16 @@ mod systems {
})
.success();

assert!(sandbox
.path()
.join(".proto/tools/proto")
.join(env!("CARGO_PKG_VERSION"))
.exists());
// I use a shared target folder for all projects in .cargo,
// but there's a condition in proto's code to ignore the local
// debug builds when in cargo. So need to disable this locally.
if std::env::var("CI").is_ok() {
assert!(sandbox
.path()
.join(".proto/tools/proto")
.join(env!("CARGO_PKG_VERSION"))
.exists());
}
}

#[test]
Expand Down

0 comments on commit 1f17219

Please sign in to comment.