1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-28 14:41:10 +01:00

refactor e2e test

This commit is contained in:
googs1025
2024-06-12 12:03:10 +08:00
parent 2df11f837a
commit 9fea59821f
6 changed files with 39 additions and 54 deletions

View File

@@ -41,8 +41,7 @@ func TestLeaderElection(t *testing.T) {
descheduler.SetupPlugins()
ctx := context.Background()
clientSet, _, _, _, stopCh := initializeClient(t)
defer close(stopCh)
clientSet, _, _, _ := initializeClient(ctx, t)
ns1 := "e2e-" + strings.ToLower(t.Name()+"-a")
ns2 := "e2e-" + strings.ToLower(t.Name()+"-b")