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:
Koichi Shiraishi 2020-02-02 23:34:18 +09:00 committed by Heschi Kreinick
parent 6e8b36d2c7
commit aa017ee804
1 changed files with 1 additions and 1 deletions

View File

@ -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