Updated Branches: refs/heads/master 77760cf7e -> 1ec9f8f8d
Augmenting Keith's change for ACCUMULO-1672 to set number of TServers to 1 Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/1ec9f8f8 Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/1ec9f8f8 Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/1ec9f8f8 Branch: refs/heads/master Commit: 1ec9f8f8dad7aff2f2fb72bf242e9e63d509df86 Parents: 77760cf Author: Corey J. Nolet <[email protected]> Authored: Tue Sep 10 21:22:19 2013 -0400 Committer: Corey J. Nolet <[email protected]> Committed: Tue Sep 10 21:22:19 2013 -0400 ---------------------------------------------------------------------- proxy/src/test/java/org/apache/accumulo/proxy/SimpleTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/1ec9f8f8/proxy/src/test/java/org/apache/accumulo/proxy/SimpleTest.java ---------------------------------------------------------------------- diff --git a/proxy/src/test/java/org/apache/accumulo/proxy/SimpleTest.java b/proxy/src/test/java/org/apache/accumulo/proxy/SimpleTest.java index b0d660d..15dd2e5 100644 --- a/proxy/src/test/java/org/apache/accumulo/proxy/SimpleTest.java +++ b/proxy/src/test/java/org/apache/accumulo/proxy/SimpleTest.java @@ -54,6 +54,7 @@ import org.apache.accumulo.core.metadata.MetadataTable; import org.apache.accumulo.core.util.UtilWaitThread; import org.apache.accumulo.examples.simple.constraints.NumericValueConstraint; import org.apache.accumulo.minicluster.MiniAccumuloCluster; +import org.apache.accumulo.minicluster.MiniAccumuloConfig; import org.apache.accumulo.proxy.thrift.AccumuloProxy.Client; import org.apache.accumulo.proxy.thrift.AccumuloSecurityException; import org.apache.accumulo.proxy.thrift.ActiveCompaction; @@ -138,7 +139,9 @@ public class SimpleTest { @BeforeClass public static void setupMiniCluster() throws Exception { folder.create(); - accumulo = new MiniAccumuloCluster(folder.getRoot(), secret); + MiniAccumuloConfig config = new MiniAccumuloConfig (folder.getRoot(), secret) + .setNumTservers (1); + accumulo = new MiniAccumuloCluster(config); accumulo.start(); Properties props = new Properties(); @@ -938,7 +941,7 @@ public class SimpleTest { client.createTable(creds, TABLE_TEST, true, TimeType.MILLIS); // constraints client.addConstraint(creds, TABLE_TEST, NumericValueConstraint.class.getName()); - assertEquals(2, client.listConstraints(creds, TABLE_TEST).size()); + assertEquals (2, client.listConstraints (creds, TABLE_TEST).size ()); client.updateAndFlush(creds, TABLE_TEST, mutation("row1", "cf", "cq", "123")); try {
