mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: don't call t.Fatal from a goroutine
Fixes #17900. Change-Id: I42cda6ac9cf48ed739d3a015a90b3cb15edf8ddf Reviewed-on: https://go-review.googlesource.com/33243 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
9be14c4058
commit
a145890059
14 changed files with 68 additions and 40 deletions
|
|
@ -206,7 +206,8 @@ func TestRenegotiationExtension(t *testing.T) {
|
|||
buf = make([]byte, 1024)
|
||||
n, err := c.Read(buf)
|
||||
if err != nil {
|
||||
t.Fatalf("Server read returned error: %s", err)
|
||||
t.Errorf("Server read returned error: %s", err)
|
||||
return
|
||||
}
|
||||
buf = buf[:n]
|
||||
c.Close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue