Skip to content

Commit 41ed3c6

Browse files
committed
util/retry: remove condition to ensure timing checks always run
Release note: None
1 parent 06f15e7 commit 41ed3c6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pkg/util/retry/retry_test.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -529,11 +529,9 @@ func TestRetryWithMaxDuration(t *testing.T) {
529529
require.NoError(t, err)
530530
}
531531

532-
if tc.expectedTimeSpent != 0 {
533-
require.Equal(
534-
t, tc.expectedTimeSpent, timeSource.Since(start), "expected time does not match actual spent time",
535-
)
536-
}
532+
require.Equal(
533+
t, tc.expectedTimeSpent, timeSource.Since(start), "expected time does not match actual spent time",
534+
)
537535
})
538536
}
539537
}

0 commit comments

Comments
 (0)