milvus/pkg/master/mock/collection_test.go
xige-16 81e70ee6c9 Hash message to partitioned topic
Signed-off-by: xige-16 <xi.ge@zilliz.com>
2020-09-07 21:07:36 +08:00

24 lines
375 B
Go

package mock
import (
"fmt"
"testing"
"time"
)
var C = Collection{
ID: uint64(11111),
Name: "test-collection",
CreateTime: time.Now(),
SegmentIDs: []uint64{uint64(10111)},
PartitionTags: []string{"default"},
}
func TestCollection2JSON(t *testing.T) {
res, err := Collection2JSON(C)
if err != nil {
t.Error(err)
}
fmt.Println(res)
}