mirror of
https://github.com/golang/go
synced 2024-11-24 03:30:18 -07:00
io: fix comment in test
Updates #16795 Change-Id: I0bcc34bb5a92a2c480aebfb0eb6ba57bcc7f7cfd Reviewed-on: https://go-review.googlesource.com/27551 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
a1dc9465a1
commit
e8ba80fbf6
@ -211,7 +211,7 @@ func (b byteAndEOFReader) Read(p []byte) (n int, err error) {
|
|||||||
return 1, EOF
|
return 1, EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
// In Go 1.7, this yielded bytes forever.
|
// This used to yield bytes forever; issue 16795.
|
||||||
func TestMultiReaderSingleByteWithEOF(t *testing.T) {
|
func TestMultiReaderSingleByteWithEOF(t *testing.T) {
|
||||||
got, err := ioutil.ReadAll(LimitReader(MultiReader(byteAndEOFReader('a'), byteAndEOFReader('b')), 10))
|
got, err := ioutil.ReadAll(LimitReader(MultiReader(byteAndEOFReader('a'), byteAndEOFReader('b')), 10))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user