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