emiliosetiadarma commented on code in PR #6262:
URL: https://github.com/apache/nifi/pull/6262#discussion_r934793547


##########
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/test/java/org/apache/nifi/cluster/coordination/http/replication/TestThreadPoolRequestReplicator.java:
##########
@@ -413,18 +407,16 @@ public void run() {
 
                 // Pass in Collections.emptySet() for the node ID's so that an 
Exception is thrown
                 replicator.replicate(Collections.emptySet(), "GET", new 
URI("localhost:8080/nifi"), Collections.emptyMap(),
-                    updatedHeaders, true, null, true, true, monitor);
-                Assert.fail("replicate did not throw 
IllegalArgumentException");
-            } catch (final IllegalArgumentException iae) {
-                // expected
-            }
+                        updatedHeaders, true, null, true, true, monitor);
+            });
 
             // wait for monitor to be notified.
             postNotifyLatch.await();
         });
     }
 
-    @Test(timeout = 5000)
+    @Test
+    @Timeout(value = 5000, unit = TimeUnit.MILLISECONDS)

Review Comment:
   Making the changes



-- 
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: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to