Fix NATSS CCP flaky test "deleted_clusterChannelProvisioner"
@@ -49,6 +49,7 @@ func init() {
var (
truePointer = true
+ deletedTime = metav1.Now().Rfc3339Copy()
)
var mockFetchError = controllertesting.Mocks{
@@ -187,7 +188,6 @@ func getNewClusterChannelProvisioner(name string, reconcileKind string) *eventin
func makeDeletedClusterChannelProvisioner() *eventingv1alpha1.ClusterChannelProvisioner {
c := makeClusterChannelProvisioner()
- deletedTime := metav1.Now().Rfc3339Copy()
c.DeletionTimestamp = &deletedTime
return c
}
