From 6d380f73a72fc9f7a2ff280cc54e2eb85ada2cf1 Mon Sep 17 00:00:00 2001 From: Victor Castell Date: Tue, 1 Sep 2015 00:47:38 +0200 Subject: [PATCH] Wait a bit more for leader swap --- dkron/agent_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dkron/agent_test.go b/dkron/agent_test.go index e9c5db3f4..16f258123 100644 --- a/dkron/agent_test.go +++ b/dkron/agent_test.go @@ -137,7 +137,7 @@ func TestAgentCommandElectLeader(t *testing.T) { t.Logf("Leader changed: %s", res.Node.Value) } stop <- true - case <-time.After(10 * time.Second): + case <-time.After(20 * time.Second): t.Fatal("No leader swap occurred") stop <- true }