diff --git a/library/test/src/formatters/junit.rs b/library/test/src/formatters/junit.rs index ec66fc1219ff7..c4b0e1e5c2339 100644 --- a/library/test/src/formatters/junit.rs +++ b/library/test/src/formatters/junit.rs @@ -79,7 +79,7 @@ impl OutputFormatter for JunitFormatter { name=\"{}\" time=\"{}\">", class_name, test_name, - duration.as_secs() + duration.as_secs_f64() ))?; self.write_message("")?; self.write_message("")?; @@ -91,7 +91,7 @@ impl OutputFormatter for JunitFormatter { name=\"{}\" time=\"{}\">", class_name, test_name, - duration.as_secs() + duration.as_secs_f64() ))?; self.write_message(&*format!("", m))?; self.write_message("")?; @@ -103,7 +103,7 @@ impl OutputFormatter for JunitFormatter { name=\"{}\" time=\"{}\">", class_name, test_name, - duration.as_secs() + duration.as_secs_f64() ))?; self.write_message("")?; self.write_message("")?; @@ -123,7 +123,7 @@ impl OutputFormatter for JunitFormatter { name=\"{}\" time=\"{}\"/>", class_name, test_name, - duration.as_secs() + duration.as_secs_f64() ))?; } }