diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestTableSnapshotScanner.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestTableSnapshotScanner.java index 87f7b735bd86..8fc26bbc84d0 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestTableSnapshotScanner.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestTableSnapshotScanner.java @@ -460,9 +460,7 @@ public void testMergeRegion() throws Exception { } } catch (Exception e) { LOG.error("scan snapshot error", e); - Assert.fail("Should not throw FileNotFoundException"); - Assert.assertTrue(e.getCause() != null); - Assert.assertTrue(e.getCause().getCause() instanceof FileNotFoundException); + Assert.fail("Should not throw Exception: " + e.getMessage()); } finally { tearDownCluster(); }