diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 36819dd4..0cf8c04c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -64,7 +64,7 @@ jobs: cargo build - name: Run Tests - run: cargo test --all-features + run: GITHUB_CI=true cargo test --all-features fmt: runs-on: ubuntu-latest diff --git a/substrate/serai/client/tests/runner.rs b/substrate/serai/client/tests/runner.rs index c618d1e2..61a56ceb 100644 --- a/substrate/serai/client/tests/runner.rs +++ b/substrate/serai/client/tests/runner.rs @@ -110,7 +110,9 @@ macro_rules! serai_test { tokio::time::sleep(Duration::from_secs(1)).await; } // TODO: https://github.com/serai-dex/serai/247 - tokio::time::sleep(Duration::from_secs(5)).await; + if std::env::var("GITHUB_CI") == Ok("true".to_string()) { + tokio::time::sleep(Duration::from_secs(60)).await; + } command };