Teardown only scheduler in integration tests

Signed-off-by: Kante Yin <kerthcet@gmail.com>
This commit is contained in:
Kante Yin
2023-04-24 14:22:51 +08:00
committed by kerthcet
parent d86b74b017
commit 2d866ec2fc
14 changed files with 377 additions and 495 deletions

View File

@@ -28,9 +28,7 @@ import (
// TestDefaultBinder tests the binding process in the scheduler.
func TestDefaultBinder(t *testing.T) {
testCtx := testutil.InitTestSchedulerWithOptions(t, testutil.InitTestAPIServer(t, "", nil), 0)
testutil.SyncInformerFactory(testCtx)
// Do not start scheduler routine.
defer testutil.CleanupTest(t, testCtx)
testutil.SyncSchedulerInformerFactory(testCtx)
// Add a node.
node, err := testutil.CreateNode(testCtx.ClientSet, st.MakeNode().Name("testnode").Obj())