mirror of https://github.com/golang/go.git
internal/jsonrpc2: fix invalid invocations of Fatalf in goroutines
Found by running the go vet pass 'testinggoroutine'. Change-Id: I38f17877e2a97ffb823bb97850d21107743271d7 Reviewed-on: https://go-review.googlesource.com/c/tools/+/217179 Run-TryBot: Heschi Kreinick <heschi@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com>
This commit is contained in:
parent
6e8b36d2c7
commit
aa017ee804
|
|
@ -115,7 +115,7 @@ func run(ctx context.Context, t *testing.T, withHeaders bool, r io.ReadCloser, w
|
|||
w.Close()
|
||||
}()
|
||||
if err := conn.Run(ctx); err != nil {
|
||||
t.Fatalf("Stream failed: %v", err)
|
||||
t.Errorf("Stream failed: %v", err)
|
||||
}
|
||||
}()
|
||||
return conn
|
||||
|
|
|
|||
Loading…
Reference in New Issue