From ed2088a4e59f69a268cc163c3b7a17a51a71f4d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Wed, 10 May 2017 11:50:07 +0200 Subject: [PATCH] Increase the time we wait for a registry from 0.5 to 5 seconds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- integration/registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/registry.go b/integration/registry.go index 32f25a25..fdd01c97 100644 --- a/integration/registry.go +++ b/integration/registry.go @@ -31,7 +31,7 @@ func setupRegistryV2At(c *check.C, url string, auth, schema1 bool) *testRegistry c.Assert(err, check.IsNil) // 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 { break }