From 3e8294e1cf16af0a42f57f129339e4f770ec1fef Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 15 Sep 2022 13:29:53 -0400 Subject: [PATCH] Fix a NPE bug in grpc test (#295) These tests will NPE because they call a value on a pointer receiver that is nil if there's an error. --- integration/testrunner/grpcrunner/grpc.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integration/testrunner/grpcrunner/grpc.go b/integration/testrunner/grpcrunner/grpc.go index 4110e4ba3..8dc9e4257 100644 --- a/integration/testrunner/grpcrunner/grpc.go +++ b/integration/testrunner/grpcrunner/grpc.go @@ -157,7 +157,8 @@ func (g *GRPC) runFibonacciCheck(ctx context.Context, tb testing.TB) { break } if err != nil { - tb.Errorf("Err while reading fibonacci stream: %v", err) + tb.Errorf("failed to read fibonacci stream: %v", err) + break } tb.Logf("Received value %v", place.Value) }