diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-06-19 10:14:08 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-19 10:14:08 +0900 |
| commit | 0c7b74fcef4fcb4d64d1b6d96c3afd8d39a91e25 (patch) | |
| tree | 3ded1ddf2cf392022309dceddb6c496567122015 | |
| parent | aa22799b365ca9b39267eab60a72914170ced369 (diff) | |
| parent | e4b3131584bab1b4a5bf3480e79e305945762479 (diff) | |
| download | rust-0c7b74fcef4fcb4d64d1b6d96c3afd8d39a91e25.tar.gz rust-0c7b74fcef4fcb4d64d1b6d96c3afd8d39a91e25.zip | |
Rollup merge of #86359 - fee1-dead:f64-junit-formatter, r=JohnTitor
Use as_secs_f64 in JunitFormatter cc `@andoriyu`
| -rw-r--r-- | library/test/src/formatters/junit.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/test/src/formatters/junit.rs b/library/test/src/formatters/junit.rs index ec66fc1219f..c4b0e1e5c23 100644 --- a/library/test/src/formatters/junit.rs +++ b/library/test/src/formatters/junit.rs @@ -79,7 +79,7 @@ impl<T: Write> OutputFormatter for JunitFormatter<T> { name=\"{}\" time=\"{}\">", class_name, test_name, - duration.as_secs() + duration.as_secs_f64() ))?; self.write_message("<failure type=\"assert\"/>")?; self.write_message("</testcase>")?; @@ -91,7 +91,7 @@ impl<T: Write> OutputFormatter for JunitFormatter<T> { name=\"{}\" time=\"{}\">", class_name, test_name, - duration.as_secs() + duration.as_secs_f64() ))?; self.write_message(&*format!("<failure message=\"{}\" type=\"assert\"/>", m))?; self.write_message("</testcase>")?; @@ -103,7 +103,7 @@ impl<T: Write> OutputFormatter for JunitFormatter<T> { name=\"{}\" time=\"{}\">", class_name, test_name, - duration.as_secs() + duration.as_secs_f64() ))?; self.write_message("<failure type=\"timeout\"/>")?; self.write_message("</testcase>")?; @@ -123,7 +123,7 @@ impl<T: Write> OutputFormatter for JunitFormatter<T> { name=\"{}\" time=\"{}\"/>", class_name, test_name, - duration.as_secs() + duration.as_secs_f64() ))?; } } |
