Fix formatting in `TestForceLeaveCommandRun`

This commit is contained in:
William Tisäter 2014-05-07 22:50:34 +02:00
parent ab209c0176
commit 9027d63059
1 changed files with 2 additions and 3 deletions

View File

@ -49,10 +49,9 @@ func TestForceLeaveCommandRun(t *testing.T) {
testutil.WaitForResult(func() (bool, error) {
m = a1.agent.LANMembers()
success := m[1].Status == serf.StatusLeft
err := errors.New(m[1].Status.String())
return success, err
return success, errors.New(m[1].Status.String())
}, func(err error) {
t.Fatalf("member status is %v, not left", err)
t.Fatalf("member status is %v, should be left", err)
})
}