mirror of https://github.com/coder/coder.git
25 lines
516 B
Go
25 lines
516 B
Go
//go:build !windows
|
|
|
|
package testutil
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Constants for timing out operations, usable for creating contexts
|
|
// that timeout or in require.Eventually.
|
|
const (
|
|
WaitShort = 10 * time.Second
|
|
WaitMedium = 15 * time.Second
|
|
WaitLong = 25 * time.Second
|
|
WaitSuperLong = 60 * time.Second
|
|
)
|
|
|
|
// Constants for delaying repeated operations, e.g. in
|
|
// require.Eventually.
|
|
const (
|
|
IntervalFast = 25 * time.Millisecond
|
|
IntervalMedium = 250 * time.Millisecond
|
|
IntervalSlow = time.Second
|
|
)
|