Fix a test child process panic bug (#5842)
This commit is contained in:
parent
75f2f02ef7
commit
47073ab30a
|
|
@ -846,8 +846,10 @@ impl<T> TestChild<T> {
|
||||||
self.kill(true)?;
|
self.kill(true)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
let timeout =
|
let timeout = self
|
||||||
humantime::format_duration(self.timeout.expect("already checked past_deadline()"));
|
.timeout
|
||||||
|
.map(|timeout| humantime::format_duration(timeout).to_string())
|
||||||
|
.unwrap_or_else(|| "unlimited".to_string());
|
||||||
|
|
||||||
let report = eyre!(
|
let report = eyre!(
|
||||||
"{stream_name} of command did not log any matches for the given regex,\n\
|
"{stream_name} of command did not log any matches for the given regex,\n\
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue