Fixes error message in test.

This commit is contained in:
James Phillips 2016-09-01 09:48:08 -07:00
parent d04a706a7c
commit 94c0e961eb
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
1 changed files with 1 additions and 1 deletions

View File

@ -586,7 +586,7 @@ func TestServer_Expect(t *testing.T) {
var p4 int
testutil.WaitForResult(func() (bool, error) {
p4, _ = s4.numPeers()
return p4 == 4, errors.New(fmt.Sprintf("%d", p3))
return p4 == 4, errors.New(fmt.Sprintf("%d", p4))
}, func(err error) {
t.Fatalf("should have 4 peers: %v", err)
})