Remove index registration after ut (#9558)

Signed-off-by: godchen <qingxiang.chen@zilliz.com>
pull/9566/head
godchen 2021-10-09 15:47:00 +08:00 committed by GitHub
parent 5e7648fc7c
commit faac37e726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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)
}