Fix a lint error
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
parent
dff96cdeb2
commit
b52074c355
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ import (
|
||||||
type errorReader struct{}
|
type errorReader struct{}
|
||||||
|
|
||||||
func (r *errorReader) Read(p []byte) (int, error) {
|
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) {
|
func TestReadCloserWrapperClose(t *testing.T) {
|
||||||
|
@ -31,7 +31,7 @@ func TestReaderErrWrapperReadOnError(t *testing.T) {
|
||||||
called = true
|
called = true
|
||||||
})
|
})
|
||||||
_, err := wrapper.Read([]byte{})
|
_, 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")
|
t.Fatalf("readErrWrapper should returned an error")
|
||||||
}
|
}
|
||||||
if !called {
|
if !called {
|
||||||
|
|
Loading…
Reference in a new issue