|
@ -12,7 +12,6 @@ func TestBalanceTopicPartitionOnBrokers(t *testing.T) { |
|
|
brokers := cmap.New[*BrokerStats]() |
|
|
brokers := cmap.New[*BrokerStats]() |
|
|
broker1Stats := &BrokerStats{ |
|
|
broker1Stats := &BrokerStats{ |
|
|
TopicPartitionCount: 1, |
|
|
TopicPartitionCount: 1, |
|
|
ConsumerCount: 1, |
|
|
|
|
|
CpuUsagePercent: 1, |
|
|
CpuUsagePercent: 1, |
|
|
TopicPartitionStats: cmap.New[*TopicPartitionStats](), |
|
|
TopicPartitionStats: cmap.New[*TopicPartitionStats](), |
|
|
} |
|
|
} |
|
@ -24,7 +23,6 @@ func TestBalanceTopicPartitionOnBrokers(t *testing.T) { |
|
|
}) |
|
|
}) |
|
|
broker2Stats := &BrokerStats{ |
|
|
broker2Stats := &BrokerStats{ |
|
|
TopicPartitionCount: 2, |
|
|
TopicPartitionCount: 2, |
|
|
ConsumerCount: 1, |
|
|
|
|
|
CpuUsagePercent: 1, |
|
|
CpuUsagePercent: 1, |
|
|
TopicPartitionStats: cmap.New[*TopicPartitionStats](), |
|
|
TopicPartitionStats: cmap.New[*TopicPartitionStats](), |
|
|
} |
|
|
} |
|
|