diff --git a/p2p/pex/pex_reactor_test.go b/p2p/pex/pex_reactor_test.go index a5fc03374..23f2cc2c4 100644 --- a/p2p/pex/pex_reactor_test.go +++ b/p2p/pex/pex_reactor_test.go @@ -53,6 +53,7 @@ func TestPEXReactorAddRemovePeer(t *testing.T) { outboundPeer := p2p.CreateRandomPeer(true) r.AddPeer(outboundPeer) + assert.Equal(t, size+1, book.Size(), "outbound peers should not be added to the address book") r.RemovePeer(outboundPeer, "peer not available") }