File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -478,8 +478,11 @@ func TestMetrics(t *testing.T) {
478478 t .Run ("Integration first readiness metric" , func (t * testing.T ) {
479479 var ts1 , ts2 time.Time
480480
481- // The start time is taken from the Integration status initialization timestamp
481+ // Use DeploymentTimestamp if available (for dry-build), else use InitializationTimestamp
482482 ts1 = it .Status .InitializationTimestamp .Time
483+ if it .Status .DeploymentTimestamp != nil && ! it .Status .DeploymentTimestamp .IsZero () {
484+ ts1 = it .Status .DeploymentTimestamp .Time
485+ }
483486 g .Expect (ts1 ).NotTo (BeZero ())
484487 // The end time is reported into the ready condition first truthy time
485488 ts2 = it .Status .GetCondition (v1 .IntegrationConditionReady ).FirstTruthyTime .Time
You can’t perform that action at this time.
0 commit comments