HBASE-13369 Addendum deletes the table at the end of test

This commit is contained in:
tedyu 2015-03-31 15:42:38 -07:00
parent 64941c6151
commit 452ce33ef5
1 changed files with 8 additions and 0 deletions

View File

@ -367,6 +367,10 @@ public class TestRegionServerMetrics {
} }
metricsHelper.assertCounter("ScanNext_num_ops", numScanNext, serverSource); metricsHelper.assertCounter("ScanNext_num_ops", numScanNext, serverSource);
} }
try (Admin admin = TEST_UTIL.getHBaseAdmin()) {
admin.disableTable(tableName);
admin.deleteTable(tableName);
}
} }
@Test @Test
@ -413,5 +417,9 @@ public class TestRegionServerMetrics {
} }
metricsHelper.assertCounter("ScanNext_num_ops", numScanNext, serverSource); metricsHelper.assertCounter("ScanNext_num_ops", numScanNext, serverSource);
} }
try (Admin admin = TEST_UTIL.getHBaseAdmin()) {
admin.disableTable(tableName);
admin.deleteTable(tableName);
}
} }
} }