Documentation ¶
Index ¶
- func CheckGoroutineCount(ctx context.Context, apiClient client.SystemAPIClient, expected int) poll.Check
- func StableGoroutineCount(ctx context.Context, apiClient client.SystemAPIClient, count *int) poll.Check
- func WaitForStableGoroutineCount(ctx context.Context, t poll.TestingT, apiClient client.SystemAPIClient, ...) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckGoroutineCount ¶
func CheckGoroutineCount(ctx context.Context, apiClient client.SystemAPIClient, expected int) poll.Check
CheckGoroutineCount returns a poll.Check that polls the daemon info API until the expected number of goroutines is hit.
func StableGoroutineCount ¶
func StableGoroutineCount(ctx context.Context, apiClient client.SystemAPIClient, count *int) poll.Check
StableGoroutineCount is a poll.Check that polls the daemon info API until the goroutine count is the same for 3 iterations.
func WaitForStableGoroutineCount ¶
func WaitForStableGoroutineCount(ctx context.Context, t poll.TestingT, apiClient client.SystemAPIClient, opts ...poll.SettingOp) int
WaitForStableGoroutineCount polls the daemon Info API and returns the reported goroutine count after multiple calls return the same number.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.