mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-03 17:40:34 +00:00
Extend sleeps of coordinator CI tests
The CI does now get past the first check to the second one, hence the addition of similar sleeps to the second and so on checks.
This commit is contained in:
parent
4850376664
commit
426e89d6fb
1 changed files with 10 additions and 0 deletions
|
@ -91,6 +91,9 @@ async fn key_gen_test() {
|
||||||
|
|
||||||
// Sleep for 20s to give everything processing time
|
// Sleep for 20s to give everything processing time
|
||||||
tokio::time::sleep(Duration::from_secs(20)).await;
|
tokio::time::sleep(Duration::from_secs(20)).await;
|
||||||
|
if std::env::var("GITHUB_CI") == Ok("true".to_string()) {
|
||||||
|
tokio::time::sleep(Duration::from_secs(20)).await;
|
||||||
|
}
|
||||||
for (i, processor) in processors.iter_mut().enumerate() {
|
for (i, processor) in processors.iter_mut().enumerate() {
|
||||||
let mut commitments = (0 .. u8::try_from(COORDINATORS).unwrap())
|
let mut commitments = (0 .. u8::try_from(COORDINATORS).unwrap())
|
||||||
.map(|l| (participant_from_i(l.into()), vec![l]))
|
.map(|l| (participant_from_i(l.into()), vec![l]))
|
||||||
|
@ -115,6 +118,9 @@ async fn key_gen_test() {
|
||||||
}
|
}
|
||||||
|
|
||||||
tokio::time::sleep(Duration::from_secs(20)).await;
|
tokio::time::sleep(Duration::from_secs(20)).await;
|
||||||
|
if std::env::var("GITHUB_CI") == Ok("true".to_string()) {
|
||||||
|
tokio::time::sleep(Duration::from_secs(20)).await;
|
||||||
|
}
|
||||||
for (i, processor) in processors.iter_mut().enumerate() {
|
for (i, processor) in processors.iter_mut().enumerate() {
|
||||||
let i = participant_from_i(i);
|
let i = participant_from_i(i);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
@ -143,7 +149,11 @@ async fn key_gen_test() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sleeps for longer since we need to wait for a Substrate block as well
|
// Sleeps for longer since we need to wait for a Substrate block as well
|
||||||
|
// TODO: Replace this with Substrate RPC checks and a much smaller sleep
|
||||||
tokio::time::sleep(Duration::from_secs(60)).await;
|
tokio::time::sleep(Duration::from_secs(60)).await;
|
||||||
|
if std::env::var("GITHUB_CI") == Ok("true".to_string()) {
|
||||||
|
tokio::time::sleep(Duration::from_secs(60)).await;
|
||||||
|
}
|
||||||
let mut message = None;
|
let mut message = None;
|
||||||
for processor in processors.iter_mut() {
|
for processor in processors.iter_mut() {
|
||||||
let msg = processor.recv_message().await;
|
let msg = processor.recv_message().await;
|
||||||
|
|
Loading…
Reference in a new issue