Skip to content

Commit 9e15b1d

Browse files
test: assert build status code
1 parent 2b9ca2a commit 9e15b1d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

tests/src/lib.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,15 @@ mod tests {
111111

112112
fn setup() {
113113
BUILD.call_once(|| {
114-
Command::new("cargo")
115-
.arg("build")
116-
.output()
117-
.expect("failed to build extension")
118-
.status
119-
.success();
114+
assert_eq!(
115+
Command::new("cargo")
116+
.arg("build")
117+
.output()
118+
.expect("failed to build extension")
119+
.status
120+
.success(),
121+
true
122+
);
120123
});
121124
}
122125

0 commit comments

Comments
 (0)