mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Merge pull request #116381 from pohly/cronjob-integration-test-shutdown
cronjob: shut down integration test quickly again
This commit is contained in:
commit
2a22864d9c
@ -152,6 +152,10 @@ func TestCronJobLaunchesPodAndCleansUp(t *testing.T) {
|
||||
closeFn, cjc, jc, informerSet, clientSet := setup(ctx, t)
|
||||
defer closeFn()
|
||||
|
||||
// When shutting down, cancel must be called before closeFn.
|
||||
// We simply call it multiple times.
|
||||
defer cancel()
|
||||
|
||||
cronJobName := "foo"
|
||||
namespaceName := "simple-cronjob-test"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user