From 3c8caf82da1468a555d0d41affab762749712990 Mon Sep 17 00:00:00 2001 From: Evan Batsell Date: Tue, 13 Aug 2024 10:52:01 -0400 Subject: [PATCH] Lint --- run_tests.sh | 11 ++--------- sdk/src/utils/transactions.rs | 1 - 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index 4a54f8e0..3f16abc7 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 7ef5ed2a..9abe28ff 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, };