Fix physical/consul test case

This commit is contained in:
vishalnayak 2016-08-01 10:32:29 -04:00
parent 5ed10f4074
commit 21d155f4af
1 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import (
"math/rand"
"os"
"reflect"
"sync"
"testing"
"time"
@ -195,7 +196,9 @@ func TestConsul_newConsulBackend(t *testing.T) {
}
var shutdownCh ShutdownChannel
if err := c.RunServiceDiscovery(shutdownCh, test.advertiseAddr, testActiveFunc(0.5), testSealedFunc(0.5)); err != nil {
waitGroup := &sync.WaitGroup{}
shutdown := false
if err := c.RunServiceDiscovery(&shutdown, waitGroup, shutdownCh, test.advertiseAddr, testActiveFunc(0.5), testSealedFunc(0.5)); err != nil {
t.Fatalf("bad: %v", err)
}