Documentation ¶
Index ¶
- Variables
- func Consistently(timeout time.Duration, f func() bool) bool
- func Eventually(timeout time.Duration, f func() bool) bool
- func FailIfNotDoneByTimeout(t *testing.T, waitGroup *sync.WaitGroup, timeout time.Duration, format string, ...)
- func NameHashPrefix(tb testing.TB, idLen int) string
- func StartCpuSchedulingJitter()
- func WithContext(f func(ctx context.Context))
- func WithContextWithTimeout(t *testing.T, d time.Duration, f func(ctx context.Context))
- type Latch
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MIN_REST_DURATION = 1 * time.Millisecond MAX_REST_DURATION = 5 * time.Millisecond MIN_BURST_DURATION = 1 * time.Millisecond MAX_BURST_DURATION = 10 * time.Millisecond )
Functions ¶
func FailIfNotDoneByTimeout ¶ added in v0.2.0
func StartCpuSchedulingJitter ¶
func StartCpuSchedulingJitter()
creates ongoing random bursts of cpu noise (all cores together) to make goroutine scheduling erratic in -count 100 flakiness tests
func WithContext ¶
Types ¶
type Latch ¶
type Latch struct {
// contains filtered or unexported fields
}
func NewLatch ¶
func NewLatch(logger interfaces.Logger) *Latch
func (*Latch) ReturnWhenLatchIsPaused ¶
func (l *Latch) ReturnWhenLatchIsPaused(ctx context.Context, memberId primitives.MemberId)
func (*Latch) WaitOnPauseThenWaitOnResume ¶ added in v0.2.0
func (l *Latch) WaitOnPauseThenWaitOnResume(ctx context.Context, memberId primitives.MemberId)
Click to show internal directories.
Click to hide internal directories.