nodece commented on code in PR #18418:
URL: https://github.com/apache/pulsar/pull/18418#discussion_r1023483009


##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/loadbalance/impl/ThresholdShedderTest.java:
##########
@@ -79,7 +78,7 @@ public void testBrokerNotReachThreshold() {
         broker1.setDirectMemory(new ResourceUsage(5000, 100));
         broker1.setBandwidthIn(new ResourceUsage(500, 1000));
         broker1.setBandwidthOut(new ResourceUsage(500, 1000));
-        broker1.setBundles(Sets.newHashSet("bundle-1"));
+        broker1.getBundles().add("bundle-1");

Review Comment:
   Same above.



##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/loadbalance/impl/ThresholdShedderTest.java:
##########
@@ -99,7 +98,7 @@ public void testBrokerWithSingleBundle() {
         LocalBrokerData broker1 = new LocalBrokerData();
         broker1.setBandwidthIn(new ResourceUsage(999, 1000));
         broker1.setBandwidthOut(new ResourceUsage(999, 1000));
-        broker1.setBundles(Sets.newHashSet("bundle-1"));
+        broker1.getBundles().add("bundle-1");

Review Comment:
   Same above.



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