diff --git a/blockchain/v0/reactor_test.go b/blockchain/v0/reactor_test.go index 85e617fa8..93b60ae5b 100644 --- a/blockchain/v0/reactor_test.go +++ b/blockchain/v0/reactor_test.go @@ -388,11 +388,11 @@ func TestReactor_BadBlockStopsPeer(t *testing.T) { require.Eventuallyf( t, - func() bool { return len(newSuite.reactor.pool.peers) == len(testSuites)-3 }, + func() bool { return len(newSuite.reactor.pool.peers) < len(testSuites)-1 }, 10*time.Minute, 10*time.Millisecond, - "invalid number of peers; expected: %d, got: %d", - len(testSuites)-3, + "invalid number of peers; expected < %d, got: %d", + len(testSuites)-1, len(newSuite.reactor.pool.peers), ) }