dan-s1 commented on code in PR #6823:
URL: https://github.com/apache/nifi/pull/6823#discussion_r1062979166


##########
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/status/analytics/TestConnectionStatusAnalytics.java:
##########
@@ -151,7 +148,7 @@ public void testInvalidModelNaNScore() {
         ConnectionStatusAnalytics connectionStatusAnalytics = 
getConnectionStatusAnalytics(modelMap);
         Long countTime = 
connectionStatusAnalytics.getTimeToCountBackpressureMillis(connection, 
flowFileEvent);
         assertNotNull(countTime);
-        assert (countTime == -1);
+        assertEquals(-1, countTime);

Review Comment:
   In all other instances you cast countTime with (long). If you need a cast 
then it should be done here also. If you do not need a cast then the other 
cases should not need it either.



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