diff --git a/authz/grpc_authz_end2end_test.go b/authz/grpc_authz_end2end_test.go index d54c88d67ff6..6ddc8dbf78f0 100644 --- a/authz/grpc_authz_end2end_test.go +++ b/authz/grpc_authz_end2end_test.go @@ -598,7 +598,6 @@ func (s) TestFileWatcher_ValidPolicyRefresh(t *testing.T) { t.Fatalf("error listening: %v", err) } defer lis.Close() - stub := &stubserver.StubServer{ Listener: lis, UnaryCallF: func(ctx context.Context, req *testpb.SimpleRequest) (*testpb.SimpleResponse, error) { @@ -651,7 +650,6 @@ func (s) TestFileWatcher_InvalidPolicySkipReload(t *testing.T) { t.Fatalf("error listening: %v", err) } defer lis.Close() - stub := &stubserver.StubServer{ Listener: lis, UnaryCallF: func(ctx context.Context, req *testpb.SimpleRequest) (*testpb.SimpleResponse, error) {