HBASE-2226 HQuorumPeerTest doesnt run because it doesnt start with the word Test
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@909980 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e2014da2f9
commit
e743a52a0c
|
@ -204,6 +204,7 @@ Release 0.21.0 - Unreleased
|
|||
should be reversed (Adrian Popescu via Stack)
|
||||
HBASE-2224 Broken build: TestGetRowVersions.testGetRowMultipleVersions
|
||||
HBASE-2129 ant tar build broken since switch to Ivy (Kay Kay via Stack)
|
||||
HBASE-2226 HQuorumPeerTest doesnt run because it doesnt start with the word Test
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-1760 Cleanup TODOs in HTable
|
||||
|
|
|
@ -33,7 +33,7 @@ import org.apache.zookeeper.server.quorum.QuorumPeer.QuorumServer;
|
|||
/**
|
||||
* Test for HQuorumPeer.
|
||||
*/
|
||||
public class HQuorumPeerTest extends HBaseTestCase {
|
||||
public class TestHQuorumPeer extends HBaseTestCase {
|
||||
private Path dataDir;
|
||||
|
||||
@Override
|
||||
|
@ -63,7 +63,7 @@ public class HQuorumPeerTest extends HBaseTestCase {
|
|||
/** */
|
||||
public void testMakeZKProps() {
|
||||
Properties properties = HQuorumPeer.makeZKProps(conf);
|
||||
assertEquals(2000, Integer.parseInt(properties.getProperty("tickTime")));
|
||||
assertEquals(3000, Integer.parseInt(properties.getProperty("tickTime")));
|
||||
assertEquals(Integer.valueOf(10), Integer.valueOf(properties.getProperty("initLimit")));
|
||||
assertEquals(Integer.valueOf(5), Integer.valueOf(properties.getProperty("syncLimit")));
|
||||
assertEquals(dataDir.toString(), properties.get("dataDir"));
|
||||
|
@ -74,7 +74,7 @@ public class HQuorumPeerTest extends HBaseTestCase {
|
|||
String oldValue = conf.get(HConstants.ZOOKEEPER_QUORUM);
|
||||
conf.set(HConstants.ZOOKEEPER_QUORUM, "a.foo.bar,b.foo.bar,c.foo.bar");
|
||||
properties = HQuorumPeer.makeZKProps(conf);
|
||||
assertEquals(2000, Integer.parseInt(properties.getProperty("tickTime")));
|
||||
assertEquals(3000, Integer.parseInt(properties.getProperty("tickTime")));
|
||||
assertEquals(Integer.valueOf(10), Integer.valueOf(properties.getProperty("initLimit")));
|
||||
assertEquals(Integer.valueOf(5), Integer.valueOf(properties.getProperty("syncLimit")));
|
||||
assertEquals(dataDir.toString(), properties.get("dataDir"));
|
Loading…
Reference in New Issue