You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2014/01/31 16:42:53 UTC
[4/9] git commit: fix fat client tests
fix fat client tests
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/5f6c5ce6
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/5f6c5ce6
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/5f6c5ce6
Branch: refs/heads/cassandra-1.2
Commit: 5f6c5ce68f53e8943a171679f595e99ff06afa49
Parents: 52e1def
Author: Brandon Williams <br...@apache.org>
Authored: Fri Jan 31 09:40:06 2014 -0600
Committer: Brandon Williams <br...@apache.org>
Committed: Fri Jan 31 09:40:06 2014 -0600
----------------------------------------------------------------------
.../org/apache/cassandra/locator/DynamicEndpointSnitchTest.java | 2 +-
test/unit/org/apache/cassandra/service/InitClientTest.java | 2 +-
.../org/apache/cassandra/service/StorageServiceClientTest.java | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/5f6c5ce6/test/unit/org/apache/cassandra/locator/DynamicEndpointSnitchTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/locator/DynamicEndpointSnitchTest.java b/test/unit/org/apache/cassandra/locator/DynamicEndpointSnitchTest.java
index 3ac9ecb..298f1c7 100644
--- a/test/unit/org/apache/cassandra/locator/DynamicEndpointSnitchTest.java
+++ b/test/unit/org/apache/cassandra/locator/DynamicEndpointSnitchTest.java
@@ -35,7 +35,7 @@ public class DynamicEndpointSnitchTest
public void testSnitch() throws InterruptedException, IOException, ConfigurationException
{
// do this because SS needs to be initialized before DES can work properly.
- StorageService.instance.initClient();
+ StorageService.instance.initClient(0);
int sleeptime = 150;
SimpleSnitch ss = new SimpleSnitch();
DynamicEndpointSnitch dsnitch = new DynamicEndpointSnitch(ss, String.valueOf(ss.hashCode()));
http://git-wip-us.apache.org/repos/asf/cassandra/blob/5f6c5ce6/test/unit/org/apache/cassandra/service/InitClientTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/service/InitClientTest.java b/test/unit/org/apache/cassandra/service/InitClientTest.java
index 23c4b1c..7d44cd8 100644
--- a/test/unit/org/apache/cassandra/service/InitClientTest.java
+++ b/test/unit/org/apache/cassandra/service/InitClientTest.java
@@ -30,6 +30,6 @@ public class InitClientTest // extends CleanupHelper
@Test
public void testInitClientStartup() throws IOException, ConfigurationException
{
- StorageService.instance.initClient();
+ StorageService.instance.initClient(0);
}
}
http://git-wip-us.apache.org/repos/asf/cassandra/blob/5f6c5ce6/test/unit/org/apache/cassandra/service/StorageServiceClientTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/service/StorageServiceClientTest.java b/test/unit/org/apache/cassandra/service/StorageServiceClientTest.java
index b473c18..19efe3a 100644
--- a/test/unit/org/apache/cassandra/service/StorageServiceClientTest.java
+++ b/test/unit/org/apache/cassandra/service/StorageServiceClientTest.java
@@ -35,7 +35,7 @@ public class StorageServiceClientTest
{
SchemaLoader.mkdirs();
SchemaLoader.cleanup();
- StorageService.instance.initClient();
+ StorageService.instance.initClient(0);
// verify that no storage directories were created.
for (String path : DatabaseDescriptor.getAllDataFileLocations())