fix to gccgo compilation error

Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
Upstream-commit: d2a2c974d9d0862ddd9974c861c080159a53cd4b
Component: engine
This commit is contained in:
vagrant
2015-05-14 16:28:23 +00:00
committed by Srini Brahmaroutu
parent ab675e423e
commit a587ee906f
@@ -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))