From 3153dc0ec03133f791dc80437625c2e7d8ef1bde Mon Sep 17 00:00:00 2001 From: Geoffrey Gilmore Date: Wed, 31 Jul 2024 13:59:44 -0700 Subject: [PATCH] fix/internal/grpc/retry/testpb: fix NPE in vendored testpb package interceptor_suite.go --- internal/grpc/retry/testpb/interceptor_suite.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/grpc/retry/testpb/interceptor_suite.go b/internal/grpc/retry/testpb/interceptor_suite.go index fb70e8c71595..858b2f065f3c 100644 --- a/internal/grpc/retry/testpb/interceptor_suite.go +++ b/internal/grpc/retry/testpb/interceptor_suite.go @@ -64,8 +64,8 @@ func (s *InterceptorTestSuite) SetupSuite() { for { var err error s.ServerListener, err = net.Listen("tcp", s.serverAddr) - s.serverAddr = s.ServerListener.Addr().String() require.NoError(s.T(), err, "must be able to allocate a port for serverListener") + s.serverAddr = s.ServerListener.Addr().String() if *flagTls { cert, err := tls.X509KeyPair(certPEM, keyPEM) require.NoError(s.T(), err, "unable to load test TLS certificate")