diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c05e888..8d3d4ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,9 +53,9 @@ jobs: # CARGO_DRIFT_FFI_PATH: "/usr/lib" - name: Test run: | - cargo test --no-fail-fast -- --nocapture + cargo test --no-fail-fast --test lib -- --nocapture + cargo test --no-fail-fast --test integration --test-threads 1 -- --nocapture env: RUST_LOG: info TEST_PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY }} - CARGO_DRIFT_FFI_PATH: "/usr/lib" - DEVNET_RPC_ENDPOINT: ${{ vars.DEVNET_RPC_ENDPOINT }} + CARGO_DRIFT_FFI_PATH: "/usr/lib" \ No newline at end of file diff --git a/crates/src/utils.rs b/crates/src/utils.rs index 5c1a0f1..6b816cc 100644 --- a/crates/src/utils.rs +++ b/crates/src/utils.rs @@ -135,11 +135,11 @@ pub mod test_envs { /// solana mainnet endpoint pub fn mainnet_endpoint() -> String { - std::env::var("MAINNET_RPC_ENDPOINT").expect("TEST_MAINNET_ENDPOINT set") + std::env::var("TEST_MAINNET_RPC_ENDPOINT").expect("TEST_MAINNET_ENDPOINT set") } /// solana devnet endpoint pub fn devnet_endpoint() -> String { - std::env::var("DEVNET_RPC_ENDPOINT") + std::env::var("TEST_DEVNET_RPC_ENDPOINT") .unwrap_or_else(|_| "https://api.devnet.solana.com".to_string()) } /// keypair for integration tests