mirror of
https://github.com/containers/podman.git
synced 2025-10-25 18:25:59 +08:00
Add extra E2E test for restarting containers
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #482 Approved by: baude
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user