Documentation
¶
Overview ¶
Package testutil provides assertion helpers, deadlock detection and timeout wrappers shared by every bitbox-testkit consumer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEventually ¶
AssertEventually polls cond at 1ms intervals until it returns true or d elapses. Cheaper than time.Sleep for "did the background work finish".
func MustWithin ¶
MustWithin runs fn and fails t if it does not return within d. The check uses a goroutine; deadlocked code is detected at d and the test fails with a stack dump of the runtime.
Types ¶
Click to show internal directories.
Click to hide internal directories.