This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 71297a14111 branch-3.0: [fix](cloud) Fix cloud resource test ut #47199 
(#50075)
71297a14111 is described below

commit 71297a14111d4a3a08e2458f705e513ac7a65806
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Apr 30 17:23:46 2025 +0800

    branch-3.0: [fix](cloud) Fix cloud resource test ut #47199 (#50075)
    
    Cherry-picked from #47199
    
    Co-authored-by: deardeng <deng...@selectdb.com>
---
 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 0d8a2cf89e2..e2aa0951436 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<int64_t*>(args[2]);
         *key_id = 1;
     });
+    sp->set_call_back("resource_manager::set_safe_drop_time",
+                      [](auto&& args) { *try_any_cast<int64_t*>(args[0]) = -1; 
});
     sp->set_call_back("decrypt_ak_sk:get_encryption_key", [](auto&& args) {
         auto* key = try_any_cast<std::string*>(args[0]);
         *key = "test";


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to