mirror of https://github.com/milvus-io/milvus.git
Remove index registration after ut (#9558)
Signed-off-by: godchen <qingxiang.chen@zilliz.com>pull/9566/head
parent
5e7648fc7c
commit
faac37e726
|
@ -443,6 +443,8 @@ func TestIndexNode(t *testing.T) {
|
|||
zap.String("resp", resp.Response),
|
||||
zap.String("name", resp.ComponentName))
|
||||
})
|
||||
err = in.etcdKV.RemoveWithPrefix("session/IndexNode")
|
||||
assert.Nil(t, err)
|
||||
|
||||
err = in.Stop()
|
||||
assert.Nil(t, err)
|
||||
|
@ -718,6 +720,9 @@ func TestCreateIndexFailed(t *testing.T) {
|
|||
assert.Equal(t, commonpb.ErrorCode_UnexpectedError, status.ErrorCode)
|
||||
})
|
||||
|
||||
err = in.etcdKV.RemoveWithPrefix("session/IndexNode")
|
||||
assert.Nil(t, err)
|
||||
|
||||
err = in.Stop()
|
||||
assert.Nil(t, err)
|
||||
}
|
||||
|
@ -767,6 +772,9 @@ func TestIndexNode_Error(t *testing.T) {
|
|||
assert.Equal(t, commonpb.ErrorCode_UnexpectedError, resp.Status.ErrorCode)
|
||||
})
|
||||
|
||||
err = in.etcdKV.RemoveWithPrefix("session/IndexNode")
|
||||
assert.Nil(t, err)
|
||||
|
||||
err = in.Stop()
|
||||
assert.Nil(t, err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue