diff options
Diffstat (limited to 'src/pkg/http/client_test.go')
| -rw-r--r-- | src/pkg/http/client_test.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/pkg/http/client_test.go b/src/pkg/http/client_test.go index 6cde4a41ca..ca4235879e 100644 --- a/src/pkg/http/client_test.go +++ b/src/pkg/http/client_test.go @@ -25,11 +25,7 @@ func TestClient(t *testing.T) { r.Body.Close(); } - // TODO: io.ErrEOF check is needed because we're sometimes getting - // this error when nothing is actually wrong. rsc suspects a bug - // in bufio. Can remove the ErrEOF check once the bug is fixed - // (expected to occur within a few weeks of this writing, 6/9/09). - if err != nil && err != io.ErrEOF { + if err != nil { t.Errorf("Error fetching URL: %v", err); } else { s := string(b); |
