Fix indexcoord ut (#17282)

Signed-off-by: Cai.Zhang <cai.zhang@zilliz.com>
pull/16782/head
cai.zhang 2022-05-31 12:00:09 +08:00 committed by GitHub
parent 9ce9c6ea68
commit f1bad98f00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -178,8 +178,7 @@ func TestIndexCoord(t *testing.T) {
resp, err := ic.GetIndexStates(ctx, req)
assert.Nil(t, err)
assert.Equal(t, commonpb.ErrorCode_Success, resp.Status.ErrorCode)
if resp.States[0].State == commonpb.IndexState_Finished ||
resp.States[0].State == commonpb.IndexState_Failed {
if resp.States[0].State == commonpb.IndexState_Finished {
break
}
time.Sleep(100 * time.Millisecond)