From 375080f960b9d6ab86989e57ba5359659ceb2823 Mon Sep 17 00:00:00 2001 From: Brendan LE GLAUNEC Date: Thu, 23 Mar 2017 15:28:54 +0100 Subject: [PATCH] v2.0.0 : Fixed golang style issues (#65) In writeResult.go, two error strings began with an uppercase letter and ended with a dot. See https://github.com/golang/go/wiki/Errors for more information --- test/src/writeResult.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/writeResult.go b/test/src/writeResult.go index 7594d64..e15ef4c 100644 --- a/test/src/writeResult.go +++ b/test/src/writeResult.go @@ -78,7 +78,7 @@ func (t *Tester) WriteResults(result Test, output string) bool { // Write tests results under JUnit format on w func (t *Tester) writeJUnitReportXML(result Test, rw io.ReadWriter, output string) error { if result.expected == nil && result.result == nil { - return errors.New("Test results could not be deserialized.") + return errors.New("test results could not be deserialized") } suites := JUnitTestSuites{} @@ -155,7 +155,7 @@ func (t *Tester) writeJUnitReportXML(result Test, rw io.ReadWriter, output strin writer.Write(bytes) if failureCount > 0 { - return errors.New("Some cameras were not successfully accessed.") + return errors.New("some cameras were not successfully accessed") } return nil }