From d2a2c974d9d0862ddd9974c861c080159a53cd4b Mon Sep 17 00:00:00 2001 From: vagrant Date: Thu, 14 May 2015 13:58:00 +0000 Subject: [PATCH] fix to gccgo compilation error Signed-off-by: Srini Brahmaroutu --- pkg/ioutils/readers_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/ioutils/readers_test.go b/pkg/ioutils/readers_test.go index b4cbfd95f6..d220487ad5 100644 --- a/pkg/ioutils/readers_test.go +++ b/pkg/ioutils/readers_test.go @@ -43,10 +43,9 @@ func TestReaderErrWrapperReadOnError(t *testing.T) { } func TestReaderErrWrapperRead(t *testing.T) { - called := false reader := strings.NewReader("a string reader.") wrapper := NewReaderErrWrapper(reader, func() { - called = true // Should not be called + t.Fatalf("readErrWrapper should not have called the anonymous function on failure") }) // Read 20 byte (should be ok with the string above) num, err := wrapper.Read(make([]byte, 20))