mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-01 13:53:55 +00:00
Only declare job as finished after removing all finalizers
Change-Id: Id4b01b0e6fabe24134e57e687356e0fc613cead4
This commit is contained in:
@@ -1341,6 +1341,9 @@ func TestOrphanPodsFinalizersClearedWithGC(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestFinalizersClearedWhenBackoffLimitExceeded(t *testing.T) {
|
||||
// Set a maximum number of uncounted pods below parallelism, to ensure it
|
||||
// doesn't affect the termination of pods.
|
||||
t.Cleanup(setDuringTest(&jobcontroller.MaxUncountedPods, 50))
|
||||
closeFn, restConfig, clientSet, ns := setup(t, "simple")
|
||||
defer closeFn()
|
||||
ctx, cancel := startJobControllerAndWaitForCaches(restConfig)
|
||||
|
||||
Reference in New Issue
Block a user