Skip to content

Commit afdfb3c

Browse files
committed
tests: improve initialize on error
1 parent 317ff28 commit afdfb3c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/wallet/test/mod.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,13 @@ pub fn initialize() {
127127
let start_services_file = ["tests", "start_services.sh"].join(&MAIN_SEPARATOR.to_string());
128128
INIT.call_once(|| {
129129
println!("starting test services...");
130-
let status = Command::new(start_services_file)
131-
.stdout(Stdio::null())
132-
.stderr(Stdio::null())
133-
.status()
130+
let output = Command::new(start_services_file)
131+
.output()
134132
.expect("failed to start test services");
135-
assert!(status.success());
133+
if !output.status.success() {
134+
println!("{output:?}");
135+
panic!("failed to start test services");
136+
}
136137
});
137138
}
138139

0 commit comments

Comments
 (0)