chore: Refactor bootstrap test (#1216)
* chore: Remove unnecessary conversions to string in bootstrap tests * chore: Simplify assertion in bootstrap tests
This commit is contained in:
@@ -13,7 +13,7 @@ fn bootstrap() {
|
||||
.build_client(true)
|
||||
.build_server(true)
|
||||
.build_transport(false)
|
||||
.out_dir(format!("{}", out_dir.display()))
|
||||
.out_dir(&out_dir)
|
||||
.compile(iface_files, dirs)
|
||||
.unwrap();
|
||||
|
||||
@@ -21,11 +21,9 @@ fn bootstrap() {
|
||||
.arg("diff")
|
||||
.arg("--exit-code")
|
||||
.arg("--")
|
||||
.arg(format!("{}", out_dir.display()))
|
||||
.arg(&out_dir)
|
||||
.status()
|
||||
.unwrap();
|
||||
|
||||
if !status.success() {
|
||||
panic!("You should commit the protobuf files");
|
||||
}
|
||||
assert!(status.success(), "You should commit the protobuf files");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user