Try to fix coordinator CI by sleeping longer when in CI

This commit is contained in:
Luke Parker 2023-08-14 16:02:14 -04:00
parent f366d65d4b
commit 4850376664
No known key found for this signature in database

View file

@ -52,6 +52,11 @@ async fn key_gen_test() {
// TODO: Replace this with a Coordinator RPC // TODO: Replace this with a Coordinator RPC
tokio::time::sleep(Duration::from_secs(150)).await; 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 // Connect to the Message Queues as the processor
let mut new_processors: Vec<Processor> = vec![]; let mut new_processors: Vec<Processor> = vec![];
for (handles, key) in processors { for (handles, key) in processors {