Skip to content

Commit

Permalink
run integration tests sequentially
Browse files Browse the repository at this point in the history
  • Loading branch information
jordy25519 committed Sep 26, 2024
1 parent 65a9224 commit 105c622
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions crates/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 105c622

Please sign in to comment.