summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2020-02-25 11:13:29 -0800
committergVisor bot <gvisor-bot@google.com>2020-02-25 11:14:47 -0800
commit4d7db46123f020df77cea5c00df4114b7b073845 (patch)
tree31042dabb9b9d1db38e56fe94776eab5c9e74d00
parent160d5751ab6a06c22aed7d829a17c88344cc7cf2 (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
-rw-r--r--runsc/container/container_test.go1
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