MCPcopy
hub / github.com/google/cadvisor / waitForContainerInfo

Function waitForContainerInfo

integration/tests/api/perf_test.go:49–58  ·  view source on GitHub ↗
(fm framework.Framework, containerID string)

Source from the content-addressed store, hash-verified

47}
48
49func waitForContainerInfo(fm framework.Framework, containerID string) {
50 err := framework.RetryForDuration(func() error {
51 _, err := fm.Cadvisor().Client().DockerContainer(containerID, &v1.ContainerInfoRequest{NumStats: 1})
52 if err != nil {
53 return err
54 }
55 return nil
56 }, 5*time.Second)
57 assert.NoError(fm.T(), err)
58}

Callers 1

TestPerfEventsFunction · 0.85

Calls 5

RetryForDurationFunction · 0.92
DockerContainerMethod · 0.65
ClientMethod · 0.65
CadvisorMethod · 0.65
TMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…