From e0f1824382b8a1a1ededa4f10b22ff653bfba4ff Mon Sep 17 00:00:00 2001 From: Chai Bot Date: Tue, 20 Oct 2026 15:48:19 +0000 Subject: [PATCH] fix: add nil guard for BSL LastValidationTime in BSLsAreUpdated Co-Authored-By: Claude Opus 4.6 --- tests/e2e/lib/dpa_helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/lib/dpa_helpers.go b/tests/e2e/lib/dpa_helpers.go index cdbe61b03e6..4d59c4b95a2 100755 --- a/tests/e2e/lib/dpa_helpers.go +++ b/tests/e2e/lib/dpa_helpers.go @@ -301,7 +301,7 @@ func (v *DpaCustomResource) BSLsAreUpdated(updateTime time.Time) wait.ConditionF } for _, bsl := range bsls.Items { - if !bsl.Status.LastValidationTime.After(updateTime) { + if bsl.Status.LastValidationTime == nil || !bsl.Status.LastValidationTime.After(updateTime) { return false, nil } }