Skip to content

Commit f9252a7

Browse files
committed
react to library-go changes
1 parent 77f58ba commit f9252a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/operator_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
k8sclient "k8s.io/client-go/kubernetes"
1616
"k8s.io/client-go/tools/clientcmd"
1717
"k8s.io/klog/v2"
18+
clocktesting "k8s.io/utils/clock/testing"
1819
utilpointer "k8s.io/utils/pointer"
1920

2021
"github.com/openshift/library-go/pkg/operator/events"
@@ -47,7 +48,7 @@ func TestMain(m *testing.M) {
4748
apiExtClient := getApiExtensionKubeClient()
4849
runOnceDurationOverrideClient := getRunOnceDurationOverrideClient()
4950

50-
eventRecorder := events.NewKubeRecorder(kubeClient.CoreV1().Events("default"), "test-e2e", &corev1.ObjectReference{})
51+
eventRecorder := events.NewKubeRecorder(kubeClient.CoreV1().Events("default"), "test-e2e", &corev1.ObjectReference{}, clocktesting.NewFakePassiveClock(time.Now()))
5152

5253
ctx, cancelFnc := context.WithCancel(context.TODO())
5354
defer cancelFnc()

0 commit comments

Comments
 (0)