diff options
author | Fabricio Voznika <fvoznika@google.com> | 2018-09-27 22:52:25 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-09-27 22:53:18 -0700 |
commit | 1166c088fc51c83af3198e25d5e774103ae976fc (patch) | |
tree | e1785f3b783ee36c9e08c9669d1f77e0a6c30d78 /runsc/container/container_test.go | |
parent | b709d239870143102cf4e44b65cc26cea78a6ccb (diff) |
Move common test code to function
PiperOrigin-RevId: 214890335
Change-Id: I42743f0ce46a5a42834133bce2f32d187194fc87
Diffstat (limited to 'runsc/container/container_test.go')
-rw-r--r-- | runsc/container/container_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runsc/container/container_test.go b/runsc/container/container_test.go index de1e50a3f..c71bcc46d 100644 --- a/runsc/container/container_test.go +++ b/runsc/container/container_test.go @@ -62,7 +62,8 @@ func waitForProcessList(cont *Container, want []*control.Process) error { } return nil } - return testutil.Poll(cb, 5*time.Second) + // Gives plenty of time as tests can run slow under --race. + return testutil.Poll(cb, 30*time.Second) } func waitForProcessCount(cont *Container, want int) error { @@ -77,7 +78,8 @@ func waitForProcessCount(cont *Container, want int) error { } return nil } - return testutil.Poll(cb, 5*time.Second) + // Gives plenty of time as tests can run slow under --race. + return testutil.Poll(cb, 30*time.Second) } // procListsEqual is used to check whether 2 Process lists are equal for all |