Skip to content

Commit 45b8c49

Browse files
committed
backup: increase max duration for restore fast fail tests
Under enough load, the restore fast fail test is not able to complete restores in time before `MaxDuration` is hit, which causes test flakes because the restore quits early. This increases the duration in tests to reduce flakiness. Fixes: #150197 Release note: None
1 parent d3b81e1 commit 45b8c49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/backup/restore_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ func TestRestoreRetryFastFails(t *testing.T) {
105105
// Max duration needs to be long enough such that the restore job
106106
// runtime does not exceed the max duration of the retry policy, or
107107
// else very few attempts will be made.
108-
maxDuration := 100 * time.Millisecond
108+
maxDuration := 500 * time.Millisecond
109109
if skip.Stress() {
110110
// Under stress, the restore will take longer to complete, so we need to
111111
// increase max duration accordingly.
112-
maxDuration = time.Second
112+
maxDuration = 1500 * time.Millisecond
113113
}
114114
const numAccounts = 10
115115

0 commit comments

Comments
 (0)