milvus/internal/querynode/partition_test.go
bigsheeper 1578c13224 Refactor collection replica
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
2021-02-05 10:53:11 +08:00

14 lines
272 B
Go

package querynode
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestPartition_newPartition(t *testing.T) {
partitionID := defaultPartitionID
partition := newPartition(UniqueID(0), partitionID)
assert.Equal(t, partition.ID(), defaultPartitionID)
}