mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
issue: #33285 - add balancer implementation - add channel count fair balance policy - add channel assignment discover grpc service Signed-off-by: chyezh <chyezh@outlook.com>
20 lines
492 B
Go
20 lines
492 B
Go
package util
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/milvus-io/milvus/pkg/util/paramtable"
|
|
)
|
|
|
|
func TestGetAllTopicsFromConfiguration(t *testing.T) {
|
|
paramtable.Init()
|
|
topics := GetAllTopicsFromConfiguration()
|
|
assert.Len(t, topics, 16)
|
|
paramtable.Get().CommonCfg.PreCreatedTopicEnabled.SwapTempValue("true")
|
|
paramtable.Get().CommonCfg.TopicNames.SwapTempValue("topic1,topic2,topic3")
|
|
topics = GetAllTopicsFromConfiguration()
|
|
assert.Len(t, topics, 3)
|
|
}
|