diff options
author | Fabricio Voznika <fvoznika@google.com> | 2020-02-25 11:13:29 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-02-25 11:14:47 -0800 |
commit | 4d7db46123f020df77cea5c00df4114b7b073845 (patch) | |
tree | 31042dabb9b9d1db38e56fe94776eab5c9e74d00 /runsc/container/container_test.go | |
parent | 160d5751ab6a06c22aed7d829a17c88344cc7cf2 (diff) |
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
Diffstat (limited to 'runsc/container/container_test.go')
-rw-r--r-- | runsc/container/container_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runsc/container/container_test.go b/runsc/container/container_test.go index 04a7dc237..bdd65b498 100644 --- a/runsc/container/container_test.go +++ b/runsc/container/container_test.go @@ -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 |