From 1726c8f4b3c76d7847da0b952c3071a3cd373320 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Sun, 11 Oct 2015 18:47:00 -0400 Subject: [PATCH] nomad: make test more robust --- nomad/leader_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/nomad/leader_test.go b/nomad/leader_test.go index 475da47b0..b753b41f4 100644 --- a/nomad/leader_test.go +++ b/nomad/leader_test.go @@ -228,6 +228,7 @@ func TestLeader_EvalBroker_Reset(t *testing.T) { defer s3.Shutdown() servers := []*Server{s1, s2, s3} testJoin(t, s1, s2, s3) + testutil.WaitForLeader(t, s1.RPC) for _, s := range servers { testutil.WaitForResult(func() (bool, error) {