Skip to content

Commit

Permalink
fix: Set show partition in-memory & fix case (#857)
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 authored Dec 16, 2024
1 parent 3b0abe6 commit 532d62a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 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 @@ -319,13 +318,11 @@ func TestLoadPartitionsAsync(t *testing.T) {
time.Sleep(time.Second * 5)

// check partition loaded
partitions, errShow := mc.ShowPartitions(ctx, collName)
if errShow == nil {
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
}
state, err := mc.GetLoadState(ctx, collName, []string{partitionName})
// partitions, errShow := mc.ShowPartitions(ctx, collName)
if err == nil {
if state == entity.LoadStateLoaded {
return
}
} else {
t.FailNow()
Expand Down

0 comments on commit 532d62a

Please sign in to comment.