From 4c5a50bc8cab9a37b1a916e5506fc3cb18d02aad Mon Sep 17 00:00:00 2001 From: deardeng <565620795@qq.com> Date: Sun, 19 Jan 2025 11:31:03 +0800 Subject: [PATCH] [fix](cloud) Fix cloud resource test ut --- cloud/test/resource_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cloud/test/resource_test.cpp b/cloud/test/resource_test.cpp index c8d53408a048e1..86cc90e2e69be5 100644 --- a/cloud/test/resource_test.cpp +++ b/cloud/test/resource_test.cpp @@ -394,6 +394,8 @@ TEST(ResourceTest, AddDropCluster) { auto* key_id = try_any_cast(args[2]); *key_id = 1; }); + sp->set_call_back("resource_manager::set_safe_drop_time", + [](auto&& args) { *try_any_cast(args[0]) = -1; }); sp->set_call_back("decrypt_ak_sk:get_encryption_key", [](auto&& args) { auto* key = try_any_cast(args[0]); *key = "test";