Technoboy- commented on code in PR #24883:
URL: https://github.com/apache/pulsar/pull/24883#discussion_r2453943115


##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/loadbalance/impl/LinuxBrokerHostUsageImplTest.java:
##########
@@ -47,6 +47,20 @@ public void checkOverrideBrokerNicSpeedGbps() {
         Assert.assertEquals(totalLimit, 3.0 * 1000 * 1000 * 3);
     }
 
+    @Test
+    public void checkOverrideBrokerNics() {
+        @Cleanup("shutdown")
+        ScheduledExecutorService executorService = 
Executors.newSingleThreadScheduledExecutor();
+        List<String> nics = new ArrayList<>();
+        nics.add("1");
+        nics.add("2");
+        nics.add("3");
+        LinuxBrokerHostUsageImpl linuxBrokerHostUsage =
+                new LinuxBrokerHostUsageImpl(1, Optional.of(3.0), nics, 
executorService);
+        double totalLimit = 
linuxBrokerHostUsage.getTotalNicLimitWithConfiguration(nics);
+        Assert.assertEquals(totalLimit, 3.0 * 1000 * 1000 * 3);
+    }

Review Comment:
   The test seems not related to this new configurable field



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