From b52074c3557940b2b9a3f1e6b49cde2342430f34 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Thu, 16 Feb 2017 13:50:06 -0500 Subject: [PATCH] Fix a lint error Signed-off-by: Nalin Dahyabhai --- ioutils/readers_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ioutils/readers_test.go b/ioutils/readers_test.go index ff15d5a..3ccfdf9 100644 --- a/ioutils/readers_test.go +++ b/ioutils/readers_test.go @@ -10,7 +10,7 @@ import ( type errorReader struct{} func (r *errorReader) Read(p []byte) (int, error) { - return 0, fmt.Errorf("Error reader always fail.") + return 0, fmt.Errorf("error reader always fail") } func TestReadCloserWrapperClose(t *testing.T) { @@ -31,7 +31,7 @@ func TestReaderErrWrapperReadOnError(t *testing.T) { called = true }) _, err := wrapper.Read([]byte{}) - if err == nil || !strings.Contains(err.Error(), "Error reader always fail.") { + if err == nil || !strings.Contains(err.Error(), "error reader always fail") { t.Fatalf("readErrWrapper should returned an error") } if !called {