diff --git a/run_tests.sh b/run_tests.sh index 4a54f8e..3f16abc 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -4,13 +4,6 @@ cargo build-sbf --manifest-path programs/steward/Cargo.toml; cargo build-sbf --manifest-path programs/validator-history/Cargo.toml; -# Run all tests except the specified one -SBF_OUT_DIR=$(pwd)/target/deploy RUST_MIN_STACK=8000000 cargo test -- --skip steward::test_state_methods +# Run all tests +SBF_OUT_DIR=$(pwd)/target/deploy RUST_MIN_STACK=5000000 cargo test --package tests --all-features --color auto -# Check if the previous command succeeded -if [ $? -eq 0 ]; then - # Run the specific test in isolation - SBF_OUT_DIR=$(pwd)/target/deploy RUST_MIN_STACK=8000000 cargo test --package tests --test mod steward::test_state_methods -else - echo "Some tests failed, skipping the isolated test run." -fi \ No newline at end of file diff --git a/sdk/src/utils/transactions.rs b/sdk/src/utils/transactions.rs index 7ef5ed2..9abe28f 100644 --- a/sdk/src/utils/transactions.rs +++ b/sdk/src/utils/transactions.rs @@ -4,7 +4,6 @@ use std::vec; use std::{collections::HashMap, sync::Arc, time::Duration}; use log::*; -use solana_client::rpc_config::RpcSendTransactionConfig; use solana_client::rpc_response::{ Response, RpcResult, RpcSimulateTransactionResult, RpcVoteAccountInfo, };