Cleanup no longer used Create/Delete TestingNamespace

This commit is contained in:
Wojciech Tyczyński
2022-07-21 19:43:55 +02:00
parent b96a04df90
commit aca03a4090
2 changed files with 1 additions and 23 deletions

View File

@@ -213,7 +213,7 @@ func CleanupTest(t *testing.T, testCtx *TestContext) {
testCtx.CancelFn()
// Cleanup nodes.
testCtx.ClientSet.CoreV1().Nodes().DeleteCollection(context.TODO(), metav1.DeleteOptions{}, metav1.ListOptions{})
framework.DeleteTestingNamespace(testCtx.NS, t)
framework.DeleteNamespaceOrDie(testCtx.ClientSet, testCtx.NS, t)
testCtx.CloseFn()
}