package system
import "github.com/docker/docker/integration/internal/system"
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, opts ...poll.SettingOp) int
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.
Source Files ¶
- Version
- v27.0.1+incompatible
- Published
- Jun 21, 2024
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 35 minutes ago –
Tools for package owners.