From 35981f50f90354f9eb1dc30143348276af765265 Mon Sep 17 00:00:00 2001 From: Andrew Kyle Purtell Date: Sat, 19 Nov 2011 22:16:47 +0000 Subject: [PATCH] HBASE-4827 TestAdmin should clean up resources after tests git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1204097 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/java/org/apache/hadoop/hbase/client/TestAdmin.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/org/apache/hadoop/hbase/client/TestAdmin.java b/src/test/java/org/apache/hadoop/hbase/client/TestAdmin.java index 8b15e8d70f5..940d7265b38 100644 --- a/src/test/java/org/apache/hadoop/hbase/client/TestAdmin.java +++ b/src/test/java/org/apache/hadoop/hbase/client/TestAdmin.java @@ -49,6 +49,7 @@ import org.apache.hadoop.hbase.regionserver.HRegionServer; import org.apache.hadoop.hbase.regionserver.wal.HLogUtilsForTests; import org.apache.hadoop.hbase.InvalidFamilyOperationException; import org.apache.hadoop.hbase.util.Bytes; +import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; @@ -88,6 +89,11 @@ public class TestAdmin { this.admin = new HBaseAdmin(TEST_UTIL.getConfiguration()); } + @After + public void tearDown() throws Exception { + this.admin.close(); + } + @Test public void testDeleteEditUnknownColumnFamilyAndOrTable() throws IOException { // Test we get exception if we try to