Permalink
Browse files

during tests: forward searches to all

  • Loading branch information...
1 parent 0c431e2 commit 443fd76b96f3b046a48559b0f56c07fb800b3d44 @isdal isdal committed Mar 13, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 javatests/edu/washington/cs/oneswarm/test/util/LocalProcessesTestBase.java
View
4 javatests/edu/washington/cs/oneswarm/test/util/LocalProcessesTestBase.java
@@ -14,6 +14,7 @@
// preConnectCommands.add("booleanSetting OSF2F.Use@DHT@Proxy false");
// preConnectCommands.add("booleanSetting OSF2F.LanFriendFinder false");
// preConnectCommands.add("booleanSetting dht.enabled false");
+ preConnectCommands.add("floatSetting f2f_forward_search_probability 1.0");
}
protected static void startLocalInstance() {
@@ -38,6 +39,9 @@ public void run() {
ConfigurationManager.getInstance().setParameter("OSF2F.Use DHT Proxy", false);
ConfigurationManager.getInstance().setParameter("OSF2F.LanFriendFinder", false);
ConfigurationManager.getInstance().setParameter("dht.enabled", false);
+ ConfigurationManager.getInstance().setParameter("f2f_forward_search_probability",
+ new Float(1.0));
+
ConfigurationManager.getInstance().setDirty();
}

0 comments on commit 443fd76

Please sign in to comment.