Update junit.rs

This commit is contained in:
Andrey Cherkashin 2021-04-26 11:42:13 -07:00 committed by GitHub
parent 38485a9e34
commit 4b4d06ae82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ impl<T: Write> OutputFormatter for JunitFormatter<T> {
_stdout: &[u8],
_state: &ConsoleTestState,
) -> io::Result<()> {
// Because testsuit node holds some of the information as attributes, we can't write it
// Because the testsuit node holds some of the information as attributes, we can't write it
// until all of the tests has ran. Instead of writting every result as they come in, we add
// them to a Vec and write them all at once when run is complete.
let duration = exec_time.map(|t| t.0.clone()).unwrap_or_default();