milvus/tests/integration/querynodev2_test.go
congqixia eb27a8a8c0
Fix integration test not wait for index built (#24037)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2023-05-12 09:51:25 +08:00

36 lines
521 B
Go

package integration
import (
"context"
"testing"
"time"
"github.com/stretchr/testify/suite"
)
type QueryNodeV2Suite struct {
suite.Suite
c *MiniCluster
}
func (s *QueryNodeV2Suite) SetupSuite() {
ctx := context.Background()
var err error
s.c, err = StartMiniCluster(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))
}