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")