Documentation
¶
Overview ¶
Package testing provides shared test utilities for use across internal packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireWaitGroupDone ¶
func RequireWaitGroupDone(t *testing.T, wg *sync.WaitGroup, timeout time.Duration, msgAndArgs ...any)
RequireWaitGroupDone is a test helper that waits for a WaitGroup with a timeout. It fails the test if the WaitGroup doesn't complete within the timeout.
func WaitGroupWithTimeout ¶
WaitGroupWithTimeout waits for a WaitGroup with a timeout provided by context. Returns true if the WaitGroup completed within the timeout, false if it timed out. This prevents tests from hanging indefinitely if a WaitGroup is never released.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.