mirror of https://github.com/hashicorp/consul
Fixes error message in test.
parent
79aec1b34b
commit
40e1553cfc
|
@ -586,7 +586,7 @@ func TestServer_Expect(t *testing.T) {
|
||||||
var p4 int
|
var p4 int
|
||||||
testutil.WaitForResult(func() (bool, error) {
|
testutil.WaitForResult(func() (bool, error) {
|
||||||
p4, _ = s4.numPeers()
|
p4, _ = s4.numPeers()
|
||||||
return p4 == 4, errors.New(fmt.Sprintf("%d", p3))
|
return p4 == 4, errors.New(fmt.Sprintf("%d", p4))
|
||||||
}, func(err error) {
|
}, func(err error) {
|
||||||
t.Fatalf("should have 4 peers: %v", err)
|
t.Fatalf("should have 4 peers: %v", err)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue