Fix flaky test: increase sleep duration
Test: atest --host libinputflinger_rs_test
Bug: 337266577
Change-Id: I8ffe4bd138ebf5f8bce748901cd7bd7d19ad93b9
diff --git a/services/inputflinger/rust/input_filter_thread.rs b/services/inputflinger/rust/input_filter_thread.rs
index 96e5681..34f9b25 100644
--- a/services/inputflinger/rust/input_filter_thread.rs
+++ b/services/inputflinger/rust/input_filter_thread.rs
@@ -309,7 +309,7 @@
let now = clock_gettime(ClockId::CLOCK_MONOTONIC).unwrap().num_milliseconds();
test_thread.request_timeout_at_time((now + 10) * 1000000);
- std::thread::sleep(Duration::from_millis(20));
+ std::thread::sleep(Duration::from_millis(100));
assert!(test_thread_callback.is_notify_timeout_called());
}