From ace175ba691be9ca81ce7926a42439206b70350b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Cidre?= Date: Mon, 21 May 2018 17:13:46 +0200 Subject: [PATCH] Fix flaky test TestPeerPoolSimulationSuite/TestSingleTopicDiscoveryWithFailover --- geth/peers/peerpool_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geth/peers/peerpool_test.go b/geth/peers/peerpool_test.go index 0af3d11bd..91df6777e 100644 --- a/geth/peers/peerpool_test.go +++ b/geth/peers/peerpool_test.go @@ -166,13 +166,13 @@ func (s *PeerPoolSimulationSuite) TestSingleTopicDiscoveryWithFailover() { s.Equal(signal.EventDiscoveryStarted, s.getPoolEvent(poolEvents)) s.Require().NotNil(s.peers[1].DiscV5) - register = NewRegister(topic) s.Require().NoError(register.Start(s.peers[2])) defer register.Stop() s.Equal(s.peers[2].Self().ID, s.getPeerFromEvent(events, p2p.PeerEventTypeAdd)) s.Equal(signal.EventDiscoveryStopped, s.getPoolEvent(poolEvents)) s.Require().Equal(signal.EventDiscoverySummary, s.getPoolEvent(poolEvents)) + summary = <-summaries s.Len(summary, 1)