Skip to content

chore: Use standardized test timeouts and delays #3291

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Aug 1, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: Add WaitMedium
  • Loading branch information
mafredri committed Jul 29, 2022
commit 7fd6449e4b18668dc35534d5588eeaecc8ddd05d
5 changes: 3 additions & 2 deletions internal/testutil/duration.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import "time"
// Constants for timing out operations, usable for creating contexts
// that timeout or in require.Eventually.
const (
WaitShort = 5 * time.Second
WaitLong = 15 * time.Second
WaitShort = 5 * time.Second
WaitMedium = 10 * time.Second
WaitLong = 15 * time.Second
)

// Constants for delaying repeated operations, e.g. in
Expand Down
5 changes: 3 additions & 2 deletions internal/testutil/duration_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import "time"
//
// Windows durations are adjusted for slow CI workers.
const (
WaitShort = 10 * time.Second
WaitLong = 30 * time.Second
WaitShort = 10 * time.Second
WaitMedium = 20 * time.Second
WaitLong = 30 * time.Second
)

// Constants for delaying repeated operations, e.g. in
Expand Down