diff --git a/.github/workflows/monero-tests.yaml b/.github/workflows/monero-tests.yaml index 5b954fc4..511535b5 100644 --- a/.github/workflows/monero-tests.yaml +++ b/.github/workflows/monero-tests.yaml @@ -56,6 +56,4 @@ jobs: - name: Run Integration Tests # Don't run if the the tests workflow also will if: ${{ matrix.version != 'v0.18.2.0' }} - run: | - GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai --all-features --test '*' - GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package serai-processor --all-features monero + run: GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai --all-features --test '*' diff --git a/processor/src/tests/literal/mod.rs b/processor/src/tests/literal/mod.rs index fb47bc9b..d2843d84 100644 --- a/processor/src/tests/literal/mod.rs +++ b/processor/src/tests/literal/mod.rs @@ -109,9 +109,13 @@ mod monero { async fn monero(ops: &DockerOperations) -> Monero { let handle = ops.handle("serai-dev-monero").host_port(18081).unwrap(); - // TODO: Replace with a check if the node has booted - tokio::time::sleep(core::time::Duration::from_secs(20)).await; let monero = Monero::new(format!("http://serai:seraidex@{}:{}", handle.0, handle.1)); + for _ in 0 .. 60 { + if monero.get_latest_block_number().await.is_ok() { + break; + } + tokio::time::sleep(core::time::Duration::from_secs(1)).await; + } while monero.get_latest_block_number().await.unwrap() < 150 { monero.mine_block().await; }