Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Remove unnecessary sleep #842

Merged
merged 1 commit into from
Feb 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down