1
0
Fork 0
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:
Sebastiaan van Stijn 2016-01-19 16:45:47 -08:00
parent e11a7f5371
commit 910a5fc234

View file

@ -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
} }