mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-21 04:42:46 +00:00
[docker test] Wait for docker running
This commit is contained in:
parent
5c140035ec
commit
c99095267e
@ -19,6 +19,9 @@ func getDockerByName(name string) (string, error) {
|
||||
"--filter", "name="+name,
|
||||
"--format", "{{.Names}}",
|
||||
).Output()
|
||||
if err == nil {
|
||||
logger.Debugf("docker ps: '%s'", string(out))
|
||||
}
|
||||
return string(out), err
|
||||
}
|
||||
|
||||
@ -74,7 +77,8 @@ sleep 10
|
||||
ctx.So(err, ShouldNotBeNil)
|
||||
}()
|
||||
|
||||
time.Sleep(1 * time.Second)
|
||||
// Wait for docker running
|
||||
time.Sleep(5 * time.Second)
|
||||
|
||||
// assert container running
|
||||
names, err := getDockerByName(d.Name())
|
||||
|
Loading…
x
Reference in New Issue
Block a user