Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Commit

Permalink
Increase sleep in NeighborRouter test to make sure it passes on slow …
Browse files Browse the repository at this point in the history
…machines
  • Loading branch information
Gal Rogozinski committed Jul 8, 2019
1 parent 9ef65f2 commit 83880e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/com/iota/iri/network/NeighborRouterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void addAndRemoveNeighborsAddsAndRemovesConnectionsAccordingly() throws E
neighborRouterAThread.start();
neighborRouterBThread.start();

Thread.sleep(1000);
Thread.sleep(2000);

// A should not have any neighbors
assertEquals("should not have any neighbors yet", 0, neighborRouterA.getConnectedNeighbors().size());
Expand All @@ -112,7 +112,7 @@ public void addAndRemoveNeighborsAddsAndRemovesConnectionsAccordingly() throws E

neighborRouterA.addNeighbor(neighborBURI.toString());

Thread.sleep(1000);
Thread.sleep(2000);

// should now be connected with each other
assertEquals("neighbor B should be connected", 1, neighborRouterA.getConnectedNeighbors().size());
Expand All @@ -126,7 +126,7 @@ public void addAndRemoveNeighborsAddsAndRemovesConnectionsAccordingly() throws E
neighborA.send(
Handshake.createHandshakePacket((char) 19000, Hash.NULL_HASH.bytes(), (byte) nodeConfigA.getMwm()));

Thread.sleep(1000);
Thread.sleep(2000);

assertEquals("should not have any connected neighbors anymore", 0,
neighborRouterA.getConnectedNeighbors().size());
Expand Down

0 comments on commit 83880e5

Please sign in to comment.