nomad: make test more robust

This commit is contained in:
Armon Dadgar 2015-10-11 18:47:00 -04:00
parent bc7e8fea9e
commit 1726c8f4b3
1 changed files with 1 additions and 0 deletions

View File

@ -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) {