junit: Use the standard duration formatting for benchmark durations

Benchmark durations were originally formatted with higher precision
because they contained just the NsPerOp field. Now that we're
approximating the total duration they are more accurate and don't need
as many decimals.
This commit is contained in:
Joël Stemmer
2022-06-12 23:02:01 +01:00
parent 1d905e0b1c
commit f1ad02b733
14 changed files with 31 additions and 37 deletions

View File

@ -36,7 +36,7 @@ func TestCreateFromReport(t *testing.T) {
Testcases: []Testcase{
{
Name: "BenchmarkFail",
Time: "0.000000000",
Time: "0.000",
Failure: &Result{Message: "Failed"},
},
},