From 29e7c119bd8df1e0a6501eb18c383ced341520a6 Mon Sep 17 00:00:00 2001 From: Maxim Merzhanov Date: Thu, 28 Nov 2019 18:41:41 +0300 Subject: [PATCH] integration test: add pause between starting container and checking cluster --- config_service_integration_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/config_service_integration_test.go b/config_service_integration_test.go index 5c1bc08..adab73f 100644 --- a/config_service_integration_test.go +++ b/config_service_integration_test.go @@ -159,6 +159,7 @@ func TestClusterElection(t *testing.T) { log.Printf("starting %d container\n", i) a.NoError(configsCtxs[i].StartContainer()) + time.Sleep(3 * time.Second) log.Printf("checking cluster, iteration %d\n", i+1) ready = testClusterReady(a, -1) if !ready {