HBASE-26184 TestTableSnapshotScanner.testMergeRegion error message is… (#3572)

Signed-off-by: Michael Stack <stack@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
Wellington Ramos Chevreuil 2021-08-20 10:45:16 +01:00 committed by GitHub
parent d4593ce8c5
commit 6bb5701783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -460,9 +460,7 @@ public class TestTableSnapshotScanner {
}
} 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();
}