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 c90da7a81c
commit 5a2ca43fa1
1 changed files with 4 additions and 1 deletions

View File

@ -78,7 +78,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;
}