Files
coder/testutil/duration.go
Ammar Bandukwala 24d8644c0b chore: de-flake TestWorkspaceAgent_Metadata (round 2) (#7039)
This time, we keep the timing / "racey" tests, but avoid running
them in the harsher CI conditions.
2023-04-06 21:10:13 +00:00

25 lines
515 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 = 5 * time.Second
WaitMedium = 10 * time.Second
WaitLong = 15 * 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
)