Author: toad
Date: 2008-02-13 17:11:23 +0000 (Wed, 13 Feb 2008)
New Revision: 17868
Modified:
trunk/freenet/src/freenet/node/simulator/RealNodeRoutingTest.java
Log:
waitForAllConnected() after each ping cycle.
Just to double-check, and because of a timing sensitive apparent heisenbug.
Modified: trunk/freenet/src/freenet/node/simulator/RealNodeRoutingTest.java
===================================================================
--- trunk/freenet/src/freenet/node/simulator/RealNodeRoutingTest.java
2008-02-13 17:09:09 UTC (rev 17867)
+++ trunk/freenet/src/freenet/node/simulator/RealNodeRoutingTest.java
2008-02-13 17:11:23 UTC (rev 17868)
@@ -75,7 +75,7 @@
}
- static void waitForPingAverage(double accuracy, Node[] nodes,
RandomSource random, int maxTests, int sleepTime) {
+ static void waitForPingAverage(double accuracy, Node[] nodes,
RandomSource random, int maxTests, int sleepTime) throws InterruptedException {
int cycleNumber = 0;
int lastSwaps = 0;
@@ -111,6 +111,8 @@
System.err.println("Swaps failed:" +LocationManager.noSwaps);
System.err.println("Swaps succeeded:" +LocationManager.swaps);
+ waitForAllConnected(nodes);
+
lastSwaps = newSwaps;
// Do some (routed) test-pings
for(int i=0;i<10;i++) {