From e93790ce33d9122f7833859872c8595c24593634 Mon Sep 17 00:00:00 2001 From: Meredith Baxter Date: Tue, 12 Feb 2019 13:22:39 -0500 Subject: [PATCH] Remove unnecessary sleep --- .../p2p/discovery/internal/PeerDiscoveryControllerTest.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/ethereum/p2p/src/test/java/tech/pegasys/pantheon/ethereum/p2p/discovery/internal/PeerDiscoveryControllerTest.java b/ethereum/p2p/src/test/java/tech/pegasys/pantheon/ethereum/p2p/discovery/internal/PeerDiscoveryControllerTest.java index 125667fb6b..de8f8fe55e 100644 --- a/ethereum/p2p/src/test/java/tech/pegasys/pantheon/ethereum/p2p/discovery/internal/PeerDiscoveryControllerTest.java +++ b/ethereum/p2p/src/test/java/tech/pegasys/pantheon/ethereum/p2p/discovery/internal/PeerDiscoveryControllerTest.java @@ -423,8 +423,6 @@ public void peerSeenTwice() throws InterruptedException { neighborsPacket = Packet.create(PacketType.NEIGHBORS, neighbors, keyPairs.get(1)); controller.onMessage(neighborsPacket, peers.get(1)); - // Wait for 1 second and ensure that only 1 PING was ever sent to peer[2]. - Thread.sleep(1000); verify(outboundMessageHandler, times(1)) .send(eq(peers.get(2)), matchPacketOfType(PacketType.PING)); }