test: start sync after agent start

This commit is contained in:
Frank Schroeder 2017-05-23 02:44:14 +02:00
parent 5b5566d916
commit 2e14c09447
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD
1 changed files with 1 additions and 0 deletions

View File

@ -149,6 +149,7 @@ func (a *TestAgent) Start() *TestAgent {
panic(fmt.Sprintf("Error starting agent: %s", err)) panic(fmt.Sprintf("Error starting agent: %s", err))
}) })
a.Agent.StartSync()
var out structs.IndexedNodes var out structs.IndexedNodes
retry.Run(&panicFailer{}, func(r *retry.R) { retry.Run(&panicFailer{}, func(r *retry.R) {
if len(a.httpServers) == 0 { if len(a.httpServers) == 0 {