Skip to content

Commit

Permalink
flake fix: remove the error handler for cronjob integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
pacoxu committed Jan 6, 2022
1 parent 573214e commit f4835a2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/integration/cronjob/cronjob_test.go
Expand Up @@ -26,7 +26,6 @@ import (
batchv1 "k8s.io/api/batch/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/informers"
clientset "k8s.io/client-go/kubernetes"
Expand Down Expand Up @@ -154,14 +153,6 @@ func TestCronJobLaunchesPodAndCleansUp(t *testing.T) {
ns := framework.CreateTestingNamespace(namespaceName, server, t)
defer framework.DeleteTestingNamespace(ns, server, t)

backupHandlers := runtime.ErrorHandlers
runtime.ErrorHandlers = append(runtime.ErrorHandlers, func(e error) {
t.Fatalf("Failed with error: %v", e)
})
defer func() {
runtime.ErrorHandlers = backupHandlers
}()

cjClient := clientSet.BatchV1().CronJobs(ns.Name)

stopCh := make(chan struct{})
Expand Down

0 comments on commit f4835a2

Please sign in to comment.