mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Add log during process wait in tests
TestMultiContainerKillAll timed out under --race. Without logging, we cannot tell if the process list is still increasing, but slowly, or is stuck. PiperOrigin-RevId: 297158834
This commit is contained in:
committed by
gVisor bot
parent
160d5751ab
commit
4d7db46123
@@ -71,6 +71,7 @@ func waitForProcessCount(cont *Container, want int) error {
|
||||
return &backoff.PermanentError{Err: err}
|
||||
}
|
||||
if got := len(pss); got != want {
|
||||
log.Infof("Waiting for process count to reach %d. Current: %d", want, got)
|
||||
return fmt.Errorf("wrong process count, got: %d, want: %d", got, want)
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user