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

Commit 83880e5

Browse files
author
Gal Rogozinski
committed
Increase sleep in NeighborRouter test to make sure it passes on slow machines
1 parent 9ef65f2 commit 83880e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/com/iota/iri/network/NeighborRouterTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public void addAndRemoveNeighborsAddsAndRemovesConnectionsAccordingly() throws E
102102
neighborRouterAThread.start();
103103
neighborRouterBThread.start();
104104

105-
Thread.sleep(1000);
105+
Thread.sleep(2000);
106106

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

113113
neighborRouterA.addNeighbor(neighborBURI.toString());
114114

115-
Thread.sleep(1000);
115+
Thread.sleep(2000);
116116

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

129-
Thread.sleep(1000);
129+
Thread.sleep(2000);
130130

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

0 commit comments

Comments
 (0)