From 48503766643a03a0ca7498534989a0ebc16eea42 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 14 Aug 2023 16:02:14 -0400 Subject: [PATCH] Try to fix coordinator CI by sleeping longer when in CI --- tests/coordinator/src/tests/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/coordinator/src/tests/mod.rs b/tests/coordinator/src/tests/mod.rs index 3af7e92a..89e273cf 100644 --- a/tests/coordinator/src/tests/mod.rs +++ b/tests/coordinator/src/tests/mod.rs @@ -52,6 +52,11 @@ async fn key_gen_test() { // TODO: Replace this with a Coordinator RPC tokio::time::sleep(Duration::from_secs(150)).await; + // Sleep even longer if in the CI due to it being slower than commodity hardware + if std::env::var("GITHUB_CI") == Ok("true".to_string()) { + tokio::time::sleep(Duration::from_secs(120)).await; + } + // Connect to the Message Queues as the processor let mut new_processors: Vec = vec![]; for (handles, key) in processors {