diff --git a/go-junit-report_test.go b/go-junit-report_test.go index 5bcf2b4..42201de 100644 --- a/go-junit-report_test.go +++ b/go-junit-report_test.go @@ -297,7 +297,7 @@ func loadTestReport(name string) (string, error) { } // replace value="1.0" With actual version - report := strings.Replace(string(contents), `value="1.0"`, fmt.Sprintf(`value="%s"`, runtime.Version()), 1) + report := strings.Replace(string(contents), `value="1.0"`, fmt.Sprintf(`value="%s"`, runtime.Version()), -1) return report, nil } diff --git a/tests/06-report.xml b/tests/06-report.xml index bb872f2..8b2ab23 100644 --- a/tests/06-report.xml +++ b/tests/06-report.xml @@ -1,14 +1,14 @@ - + - + file_test.go:11: Error message file_test.go:11: Longer error message.