mirror of
https://github.com/status-im/consul.git
synced 2025-02-20 01:18:49 +00:00
Fix formatting in TestForceLeaveCommandRun
This commit is contained in:
parent
ab209c0176
commit
9027d63059
@ -49,10 +49,9 @@ func TestForceLeaveCommandRun(t *testing.T) {
|
|||||||
testutil.WaitForResult(func() (bool, error) {
|
testutil.WaitForResult(func() (bool, error) {
|
||||||
m = a1.agent.LANMembers()
|
m = a1.agent.LANMembers()
|
||||||
success := m[1].Status == serf.StatusLeft
|
success := m[1].Status == serf.StatusLeft
|
||||||
err := errors.New(m[1].Status.String())
|
return success, errors.New(m[1].Status.String())
|
||||||
return success, err
|
|
||||||
}, func(err error) {
|
}, func(err error) {
|
||||||
t.Fatalf("member status is %v, not left", err)
|
t.Fatalf("member status is %v, should be left", err)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user