Fix data race for indexcoord test (#17057)

Signed-off-by: Cai.Zhang <cai.zhang@zilliz.com>
pull/17134/head
cai.zhang 2022-05-19 17:25:56 +08:00 committed by GitHub
parent 276ba69819
commit e05cfe194e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -183,7 +183,6 @@ func (inm *Mock) Register() error {
if inm.Err {
return errors.New("IndexNode register failed")
}
Params.Init()
inm.etcdKV = etcdkv.NewEtcdKV(inm.etcdCli, Params.EtcdCfg.MetaRootPath)
if err := inm.etcdKV.RemoveWithPrefix("session/" + typeutil.IndexNodeRole); err != nil {
return err