Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
wayblink committed Aug 22, 2022
1 parent aa54cda commit 967051d
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 14 deletions.
11 changes: 0 additions & 11 deletions core/milvus_meta.go

This file was deleted.

26 changes: 26 additions & 0 deletions core/milvus_sdk_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package core

import (
"context"
gomilvus "github.com/milvus-io/milvus-sdk-go/v2/client"
"github.com/stretchr/testify/assert"
"github.com/zilliztech/milvus-backup/internal/util/paramtable"
"github.com/zilliztech/milvus-backup/internal/util/typeutil"
"testing"
)

func TestProxyClient(t *testing.T) {
var params paramtable.ComponentParam
params.InitOnce()
ctx := context.Background()
var Params paramtable.GrpcServerConfig
Params.InitOnce(typeutil.ProxyRole)
milvusAddr := Params.GetAddress()
//c, err := proxy.NewClient(context, milvusAddr)
//assert.NoError(t, err)

c2, err := gomilvus.NewGrpcClient(ctx, milvusAddr)
assert.NoError(t, err)
collections, err := c2.ListCollections(ctx)
assert.NotEmpty(t, collections)
}
1 change: 0 additions & 1 deletion core/utils/etcd_util.go

This file was deleted.

1 change: 0 additions & 1 deletion core/utils/milvus_util.go

This file was deleted.

1 change: 0 additions & 1 deletion core/utils/minio_util.go

This file was deleted.

0 comments on commit 967051d

Please sign in to comment.