mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-07-06 05:57:54 -05:00
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:
@ -36,7 +36,7 @@ func TestCreateFromReport(t *testing.T) {
|
||||
Testcases: []Testcase{
|
||||
{
|
||||
Name: "BenchmarkFail",
|
||||
Time: "0.000000000",
|
||||
Time: "0.000",
|
||||
Failure: &Result{Message: "Failed"},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user