HBASE-13612 TestRegionFavoredNodes should guard against setup failure.

This commit is contained in:
Sean Busbey 2015-05-03 01:44:08 -05:00 committed by Sean Busbey
parent 1c7389cbe2
commit 11bc89c3da
1 changed files with 4 additions and 1 deletions

View File

@ -77,7 +77,10 @@ public class TestRegionFavoredNodes {
@AfterClass
public static void tearDownAfterClass() throws Exception {
table.close();
// guard against failure in setup
if (table != null) {
table.close();
}
if (createWithFavoredNode == null) {
return;
}