sodonnel commented on a change in pull request #2831:
URL: https://github.com/apache/ozone/pull/2831#discussion_r749516710
##########
File path:
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/read/TestECBlockReconstructedStripeInputStream.java
##########
@@ -354,8 +355,8 @@ public void testErrorThrownIfBlockNotLongEnough() throws
IOException {
try {
ecb.readStripe(bufs);
Assert.fail("Read should have thrown an exception");
- } catch (IOException e) {
- Assert.assertTrue(e.getMessage().matches("^Expected\\sto\\sread.+"));
+ } catch (InsufficientLocationsException e) {
Review comment:
Yea, I am aware there is some JUnit magic to do this sort of thing, but
find it easier to understand like this and avoid the "magic" annotations
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]