mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix DockerTrustSuite SetUpTest
This hopefully makes DockerTrustSuite.SetUpTest less flaky. Increased the number of attempts to check if Notary is available before giving up. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
e11a7f5371
commit
910a5fc234
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ func newTestNotary(c *check.C) (*testNotary, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wait for notary to be ready to serve requests.
|
// Wait for notary to be ready to serve requests.
|
||||||
for i := 1; i <= 5; i++ {
|
for i := 1; i <= 20; i++ {
|
||||||
if err = testNotary.Ping(); err == nil {
|
if err = testNotary.Ping(); err == nil {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue