mirror of https://github.com/milvus-io/milvus.git
Fix MetaCache ut internal not changed (#23276)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/23102/head
parent
39a36f8800
commit
32be374c33
|
@ -785,6 +785,9 @@ func TestMetaCache_RemoveCollection(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestMetaCache_ExpireShardLeaderCache(t *testing.T) {
|
||||
paramtable.Init()
|
||||
paramtable.Get().Save(Params.ProxyCfg.ShardLeaderCacheInterval.Key, "1")
|
||||
|
||||
ctx := context.Background()
|
||||
rootCoord := &MockRootCoordClientInterface{}
|
||||
queryCoord := &types.MockQueryCoord{}
|
||||
|
@ -792,9 +795,6 @@ func TestMetaCache_ExpireShardLeaderCache(t *testing.T) {
|
|||
err := InitMetaCache(ctx, rootCoord, queryCoord, shardMgr)
|
||||
assert.Nil(t, err)
|
||||
|
||||
paramtable.Init()
|
||||
paramtable.Get().Save(Params.ProxyCfg.ShardLeaderCacheInterval.Key, "1")
|
||||
|
||||
queryCoord.EXPECT().ShowCollections(mock.Anything, mock.Anything).Return(&querypb.ShowCollectionsResponse{
|
||||
Status: &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_Success,
|
||||
|
|
Loading…
Reference in New Issue