net/nettest: add missing check at end of TestLimit

This appears to have been an oversight.
This commit is contained in:
Josh Bleecher Snyder 2021-01-15 16:14:26 -08:00 committed by Josh Bleecher Snyder
parent ed2169ae99
commit 503db5540f

View File

@ -117,4 +117,8 @@ func TestLimit(t *testing.T) {
} else if n != 1 {
t.Errorf("Read(%q): n=%d want 1", string(b), n)
}
if err := <-errCh; err != nil {
t.Error(err)
}
}