mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Related to #39095 https://go.dev/doc/modules/version-numbers Update pkg version according to golang dep version convention --------- Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
20 lines
495 B
Go
20 lines
495 B
Go
package util
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/milvus-io/milvus/pkg/v2/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)
|
|
}
|