HBASE-7430 TestSnapshotDescriptionUtils break compaction/scanner tests (EnvironmentEdge issue) (Matteo Bertozzi)

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/hbase-7290@1445799 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Hsieh 2013-02-13 18:22:06 +00:00
parent 3ca47fab92
commit 03cf01614f
1 changed files with 9 additions and 8 deletions

View File

@ -29,7 +29,7 @@ import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path; import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hbase.HBaseTestingUtility; import org.apache.hadoop.hbase.HBaseTestingUtility;
import org.apache.hadoop.hbase.SmallTests; import org.apache.hadoop.hbase.MediumTests;
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription; import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription;
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type; import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type;
import org.apache.hadoop.hbase.util.EnvironmentEdge; import org.apache.hadoop.hbase.util.EnvironmentEdge;
@ -42,7 +42,7 @@ import org.junit.experimental.categories.Category;
/** /**
* Test that the {@link SnapshotDescription} helper is helping correctly. * Test that the {@link SnapshotDescription} helper is helping correctly.
*/ */
@Category(SmallTests.class) @Category(MediumTests.class)
public class TestSnapshotDescriptionUtils { public class TestSnapshotDescriptionUtils {
private static final HBaseTestingUtility UTIL = new HBaseTestingUtility(); private static final HBaseTestingUtility UTIL = new HBaseTestingUtility();
private static FileSystem fs; private static FileSystem fs;
@ -64,6 +64,7 @@ public class TestSnapshotDescriptionUtils {
throw new IOException("Failed to create root test dir: " + root); throw new IOException("Failed to create root test dir: " + root);
} }
} }
EnvironmentEdgeManagerTestHelper.reset();
} }
private static final Log LOG = LogFactory.getLog(TestSnapshotDescriptionUtils.class); private static final Log LOG = LogFactory.getLog(TestSnapshotDescriptionUtils.class);