Fix MetaCache ut internal not changed (#23276)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/23102/head
congqixia 2023-04-07 13:20:28 +08:00 committed by GitHub
parent 39a36f8800
commit 32be374c33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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,