Skip to content

Commit 05a8e4e

Browse files
test: Make archival test exercise progress deadline logic
Set ProgressDeadlineMinutes and CreationTimestamp in archival test to actually trigger the progress deadline enforcement code path. This verifies that deadline checks are properly skipped for Archived revisions, not just that archival works when condition is already set. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 59de710 commit 05a8e4e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/operator-controller/controllers/clusterobjectset_controller_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,8 @@ func Test_ClusterObjectSetReconciler_Reconcile_ArchivalAfterProgressDeadlineExce
10831083

10841084
ext := newTestClusterExtension()
10851085
rev1 := newTestClusterObjectSet(t, clusterObjectSetName, ext, testScheme)
1086+
rev1.Spec.ProgressDeadlineMinutes = 1
1087+
rev1.CreationTimestamp = metav1.NewTime(time.Now().Add(-2 * time.Minute))
10861088
rev1.Finalizers = []string{"olm.operatorframework.io/teardown"}
10871089
meta.SetStatusCondition(&rev1.Status.Conditions, metav1.Condition{
10881090
Type: ocv1.ClusterObjectSetTypeProgressing,

0 commit comments

Comments
 (0)