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

zuston pushed a commit to branch zuston-patch-1
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git

commit df08df421a691c6ad9114e8fcd76ae479a640f47
Author: Junfan Zhang <[email protected]>
AuthorDate: Fri Mar 8 11:19:48 2024 +0800

    [#1569] fix(rust): flaky test for test_ticket_manager
---
 rust/experimental/server/src/store/mem/ticket.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rust/experimental/server/src/store/mem/ticket.rs 
b/rust/experimental/server/src/store/mem/ticket.rs
index eaad3796e..0f69d1535 100644
--- a/rust/experimental/server/src/store/mem/ticket.rs
+++ b/rust/experimental/server/src/store/mem/ticket.rs
@@ -47,7 +47,7 @@ impl Ticket {
     }
 
     pub fn is_timeout(&self, timeout_sec: i64) -> bool {
-        crate::util::current_timestamp_sec() - self.created_time > timeout_sec 
as u64
+        (crate::util::current_timestamp_sec() - self.created_time) as i64 > 
timeout_sec
     }
 
     pub fn get_id(&self) -> i64 {

Reply via email to