mirror of
https://github.com/containers/skopeo.git
synced 2025-09-13 13:33:13 +00:00
Increase the time we wait for a registry from 0.5 to 5 seconds
We are not testing registry start-up performance, and killing the test suite just because Travis is a bit busy doesn’t help; we’re much better off with a test run which gives the registry a bit more time.
This commit is contained in:
@@ -31,7 +31,7 @@ func setupRegistryV2At(c *check.C, url string, auth, schema1 bool) *testRegistry
|
|||||||
c.Assert(err, check.IsNil)
|
c.Assert(err, check.IsNil)
|
||||||
|
|
||||||
// Wait for registry to be ready to serve requests.
|
// Wait for registry to be ready to serve requests.
|
||||||
for i := 0; i != 5; i++ {
|
for i := 0; i != 50; i++ {
|
||||||
if err = reg.Ping(); err == nil {
|
if err = reg.Ping(); err == nil {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user