Fix strict linting

Signed-off-by: Kante Yin <kerthcet@gmail.com>
This commit is contained in:
Kante Yin
2023-04-03 11:38:10 +08:00
committed by kerthcet
parent a7035f5459
commit 859359ad6a
11 changed files with 77 additions and 60 deletions

View File

@@ -2445,8 +2445,9 @@ func initTestSchedulerForFrameworkTest(t *testing.T, testCtx *testutils.TestCont
}
// Wait for all pods to be deleted, or will failed to create same name pods
// required in other test cases.
if err := wait.Poll(time.Millisecond, wait.ForeverTestTimeout,
testutils.PodsCleanedUp(testCtx.SchedulerCtx, testCtx.ClientSet, testCtx.NS.Name)); err != nil {
err = wait.PollUntilContextTimeout(testCtx.SchedulerCtx, time.Millisecond, wait.ForeverTestTimeout, true,
testutils.PodsCleanedUp(testCtx.SchedulerCtx, testCtx.ClientSet, testCtx.NS.Name))
if err != nil {
t.Errorf("error while waiting for all pods to be deleted: %v", err)
}
// Kill the scheduler.