From 2110a4a63bd18ae2ba000e1c55c170aeaea562f8 Mon Sep 17 00:00:00 2001 From: Nick Palmer Date: Tue, 13 Jan 2015 19:24:08 -0800 Subject: [PATCH] Replace all go version attributes. --- go-junit-report_test.go | 2 +- tests/06-report.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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.