Return-Path: X-Original-To: apmail-accumulo-commits-archive@www.apache.org Delivered-To: apmail-accumulo-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F164110D8E for ; Wed, 11 Sep 2013 01:22:58 +0000 (UTC) Received: (qmail 37303 invoked by uid 500); 11 Sep 2013 01:22:58 -0000 Delivered-To: apmail-accumulo-commits-archive@accumulo.apache.org Received: (qmail 37277 invoked by uid 500); 11 Sep 2013 01:22:58 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 37270 invoked by uid 99); 11 Sep 2013 01:22:58 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Sep 2013 01:22:58 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A8BC98BD298; Wed, 11 Sep 2013 01:22:58 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cjnolet@apache.org To: commits@accumulo.apache.org Message-Id: <73666431186f46b7a8fc243a47ad34bd@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: Augmenting Keith's change for ACCUMULO-1672 to set number of TServers to 1 Date: Wed, 11 Sep 2013 01:22:58 +0000 (UTC) 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 Authored: Tue Sep 10 21:22:19 2013 -0400 Committer: Corey J. Nolet 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 {