mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
introduce os.EOF and io.ErrUnexpectedEOF.
remove io.ErrEOF. rename io.FullRead to io.ReadFull, to match ReadAtLeast and ReadAll. remove io.FullReader, because it is now unused. R=r DELTA=295 (88 added, 105 deleted, 102 changed) OCL=30544 CL=30588
This commit is contained in:
parent
022ee0c26f
commit
64684cc2a2
23 changed files with 147 additions and 164 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue