package system
import "github.com/dotcloud/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
- v28.1.1+incompatible (latest)
- Published
- Apr 18, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 44 minutes ago –
Tools for package owners.