Teardown only scheduler in integration tests
Signed-off-by: Kante Yin <kerthcet@gmail.com>
This commit is contained in:
@@ -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())
|
||||
|
Reference in New Issue
Block a user