DomGarguilo commented on a change in pull request #2472:
URL: https://github.com/apache/accumulo/pull/2472#discussion_r803777655



##########
File path: 
core/src/test/java/org/apache/accumulo/core/iterators/system/SourceSwitchingIteratorTest.java
##########
@@ -286,10 +286,8 @@ public void testSetInterrupt() throws Exception {
 
     flag.set(true);
 
-    try {
-      ssi.seek(new Range("r1"), new ArrayList<>(), false);
-      fail("expected to see IterationInterruptedException");
-    } catch (IterationInterruptedException iie) {}
+    assertThrows(IterationInterruptedException.class,
+        () -> ssi.seek(new Range("r1"), new ArrayList<>(), false));

Review comment:
       Addressed in 2c61494




-- 
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]


Reply via email to