Skip to content

Commit

Permalink
skip le in testenv
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Volchok <alex.volchok@sap.com>
  • Loading branch information
alexwo committed Apr 3, 2024
1 parent a425eb6 commit 2fb26ec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/provider/kubernetes/kubernetes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ func TestProvider(t *testing.T) {
svr, err := config.New()
require.NoError(t, err)
resources := new(message.ProviderResources)
// disable leader election for testenv, leader is not getting elected in this mode.
svr.EnvoyGateway.Provider.Kubernetes.LeaderElection.Disable = ptr.To(true)
provider, err := New(cliCfg, svr, resources)
require.NoError(t, err)
ctx, cancel := context.WithCancel(ctrl.SetupSignalHandler())
Expand Down Expand Up @@ -1260,6 +1262,8 @@ func TestNamespacedProvider(t *testing.T) {
},
LeaderElection: egv1a1.DefaultLeaderElection(),
}
// disable leader election for testenv, leader is not getting elected in this mode.
svr.EnvoyGateway.Provider.Kubernetes.LeaderElection.Disable = ptr.To(true)

resources := new(message.ProviderResources)
provider, err := New(cliCfg, svr, resources)
Expand Down Expand Up @@ -1321,7 +1325,8 @@ func TestNamespaceSelectorProvider(t *testing.T) {
},
LeaderElection: egv1a1.DefaultLeaderElection(),
}

// disable leader election for testenv, leader is not getting elected in this mode.
svr.EnvoyGateway.Provider.Kubernetes.LeaderElection.Disable = ptr.To(true)
resources := new(message.ProviderResources)
provider, err := New(cliCfg, svr, resources)
require.NoError(t, err)
Expand Down

0 comments on commit 2fb26ec

Please sign in to comment.