We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6e7636 commit e7af027Copy full SHA for e7af027
controllers/reconcile_test.go
@@ -648,6 +648,13 @@ func TestOpenTelemetryCollectorReconciler_Reconcile(t *testing.T) {
648
if deletionTimestamp != nil {
649
err := k8sClient.Delete(testContext, &tt.args.params, client.PropagationPolicy(metav1.DeletePropagationForeground))
650
assert.NoError(t, err)
651
+ // wait until the reconciler sees the deletion
652
+ assert.EventuallyWithT(t, func(collect *assert.CollectT) {
653
+ actual := &v1beta1.OpenTelemetryCollector{}
654
+ err := reconciler.Get(testContext, nsn, actual)
655
+ assert.NoError(collect, err)
656
+ assert.NotNil(t, actual.GetDeletionTimestamp())
657
+ }, time.Second*5, time.Millisecond)
658
}
659
req := k8sreconcile.Request{
660
NamespacedName: nsn,
0 commit comments