From 09f854c9aa12de800f0a9df6873fb1a21088760a Mon Sep 17 00:00:00 2001 From: ggilmore 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 fb70e8c71595c..858b2f065f3cd 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")