MCPcopy
hub / github.com/containerd/containerd / checkTTY

Function checkTTY

integration/container_tty_leak_linux_test.go:137–144  ·  view source on GitHub ↗
(t *testing.T, shimPid, expected int)

Source from the content-addressed store, hash-verified

135}
136
137func checkTTY(t *testing.T, shimPid, expected int) {
138 require.NoError(t, Eventually(func() (bool, error) {
139 if numTTY(shimPid) == expected {
140 return true, nil
141 }
142 return false, nil
143 }, time.Second, 30*time.Second))
144}

Callers 1

Calls 2

EventuallyFunction · 0.85
numTTYFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…