From aa017ee80473d35f0fe4f4adcdb1001d16e78263 Mon Sep 17 00:00:00 2001 From: Koichi Shiraishi Date: Sun, 2 Feb 2020 23:34:18 +0900 Subject: [PATCH] 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 TryBot-Result: Gobot Gobot Reviewed-by: Heschi Kreinick --- internal/jsonrpc2/jsonrpc2_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/jsonrpc2/jsonrpc2_test.go b/internal/jsonrpc2/jsonrpc2_test.go index 192a5e805d..4fcca3154f 100644 --- a/internal/jsonrpc2/jsonrpc2_test.go +++ b/internal/jsonrpc2/jsonrpc2_test.go @@ -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