HBASE-8637 IntegrationTestBigLinkedListWithChaosMonkey uses the wrong table name
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1491573 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0e04fe82e1
commit
3b317f6f18
|
@ -21,6 +21,7 @@ package org.apache.hadoop.hbase.test;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
|
import org.apache.hadoop.conf.Configuration;
|
||||||
import org.apache.hadoop.hbase.IntegrationTestingUtility;
|
import org.apache.hadoop.hbase.IntegrationTestingUtility;
|
||||||
import org.apache.hadoop.hbase.IntegrationTests;
|
import org.apache.hadoop.hbase.IntegrationTests;
|
||||||
import org.apache.hadoop.hbase.util.ChaosMonkey;
|
import org.apache.hadoop.hbase.util.ChaosMonkey;
|
||||||
|
@ -44,8 +45,13 @@ public class IntegrationTestBigLinkedListWithChaosMonkey extends IntegrationTest
|
||||||
|
|
||||||
public IntegrationTestBigLinkedListWithChaosMonkey() {
|
public IntegrationTestBigLinkedListWithChaosMonkey() {
|
||||||
super();
|
super();
|
||||||
TABLE_NAME_KEY = "IntegrationTestBigLinkedListWithChaosMonkey.table";
|
Configuration conf = getConf();
|
||||||
DEFAULT_TABLE_NAME = "IntegrationTestBigLinkedListWithChaosMonkey";
|
if (conf != null) {
|
||||||
|
conf.set(TABLE_NAME_KEY, "IntegrationTestBigLinkedListWithChaosMonkey");
|
||||||
|
} else {
|
||||||
|
this.getTestingUtil().getConfiguration()
|
||||||
|
.set(TABLE_NAME_KEY, "IntegrationTestBigLinkedListWithChaosMonkey");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
|
@ -90,7 +96,7 @@ public class IntegrationTestBigLinkedListWithChaosMonkey extends IntegrationTest
|
||||||
test.setUp();
|
test.setUp();
|
||||||
|
|
||||||
// run the test
|
// run the test
|
||||||
int ret = ToolRunner.run(test.getConf(), test, args);
|
int ret = ToolRunner.run(test.getTestingUtil().getConfiguration(), test, args);
|
||||||
|
|
||||||
test.tearDown();
|
test.tearDown();
|
||||||
System.exit(ret);
|
System.exit(ret);
|
||||||
|
|
Loading…
Reference in New Issue