Skip to content

Commit

Permalink
fix: Set show partition in-memory & fix case
Browse files Browse the repository at this point in the history
Related to #374

- Set show partition request in-memory req type
- Fix test case logic

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia committed Dec 10, 2024
1 parent 48dfc36 commit cecc6ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions client/partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func (c *GrpcClient) ShowPartitions(ctx context.Context, collName string) ([]*en
req := &milvuspb.ShowPartitionsRequest{
DbName: "", // reserved
CollectionName: collName,
Type: milvuspb.ShowType_InMemory,
}
resp, err := c.Service.ShowPartitions(ctx, req)
if err != nil {
Expand Down
3 changes: 1 addition & 2 deletions test/testcases/load_release_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ func TestLoadPartitionsRepeatedly(t *testing.T) {

// test load partitions async
func TestLoadPartitionsAsync(t *testing.T) {
t.Skipf("Issue: https://github.com/milvus-io/milvus-sdk-go/issues/374")
ctx := createContext(t, time.Second*common.DefaultTimeout)
// connect
mc := createMilvusClient(ctx, t)
Expand All @@ -324,7 +323,7 @@ func TestLoadPartitionsAsync(t *testing.T) {
for _, p := range partitions {
log.Printf("id: %d, name: %s, loaded %t", p.ID, p.Name, p.Loaded)
if p.Name == partitionName && p.Loaded {
break
return
}
}
} else {
Expand Down

0 comments on commit cecc6ef

Please sign in to comment.