From 8bbced50c27b8079f67400e8be217721fabd81c2 Mon Sep 17 00:00:00 2001 From: Mikayla Date: Mon, 13 Nov 2023 16:49:17 -0800 Subject: [PATCH] Add test tag --- crates/gpui2/src/util.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/gpui2/src/util.rs b/crates/gpui2/src/util.rs index 3ee80306ea..cba7ed84b5 100644 --- a/crates/gpui2/src/util.rs +++ b/crates/gpui2/src/util.rs @@ -1,9 +1,15 @@ +#[cfg(any(test, feature = "test-support"))] use std::time::Duration; +#[cfg(any(test, feature = "test-support"))] use futures::Future; + +#[cfg(any(test, feature = "test-support"))] use smol::future::FutureExt; + pub use util::*; +#[cfg(any(test, feature = "test-support"))] pub async fn timeout(timeout: Duration, f: F) -> Result where F: Future,