diff options
Diffstat (limited to 'test/e2e/libpod_suite_test.go')
-rw-r--r-- | test/e2e/libpod_suite_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/e2e/libpod_suite_test.go b/test/e2e/libpod_suite_test.go index 10247f428..4d4f2905c 100644 --- a/test/e2e/libpod_suite_test.go +++ b/test/e2e/libpod_suite_test.go @@ -166,6 +166,18 @@ func (p *PodmanTest) Podman(args []string) *PodmanSession { return &PodmanSession{session} } + +//WaitForContainer waits on a started container +func WaitForContainer(p *PodmanTest) bool { + for i := 0; i < 10; i++ { + if p.NumberOfContainers() == 1 { + return true + } + time.Sleep(1 * time.Second) + } + return false +} + // Cleanup cleans up the temporary store func (p *PodmanTest) Cleanup() { // Remove all containers |