mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
5aedbd0af4
#28307 Signed-off-by: wayblink <anyang.wang@zilliz.com>
36 lines
525 B
Go
36 lines
525 B
Go
package integration
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
)
|
|
|
|
type QueryNodeV2Suite struct {
|
|
suite.Suite
|
|
c *MiniClusterV2
|
|
}
|
|
|
|
func (s *QueryNodeV2Suite) SetupSuite() {
|
|
ctx := context.Background()
|
|
var err error
|
|
|
|
s.c, err = StartMiniClusterV2(ctx)
|
|
s.Require().NoError(err)
|
|
|
|
time.Sleep(time.Second)
|
|
}
|
|
|
|
func (s *QueryNodeV2Suite) TearDownSuite() {
|
|
if s.c != nil {
|
|
err := s.c.Stop()
|
|
s.NoError(err)
|
|
}
|
|
}
|
|
|
|
func TestQueryNodeV2(t *testing.T) {
|
|
suite.Run(t, new(QueryNodeV2Suite))
|
|
}
|