From c8159746e7a98c9eae63579cdd00cab3902a50dc Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Wed, 24 Aug 2022 13:33:11 +0200 Subject: [PATCH] Tests: Remove unnecessary argument --- programs/mango-v4/tests/program_test/mango_client.rs | 1 - programs/mango-v4/tests/test_basic.rs | 12 +++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/programs/mango-v4/tests/program_test/mango_client.rs b/programs/mango-v4/tests/program_test/mango_client.rs index eb69e5a55..aa9ab48ee 100644 --- a/programs/mango-v4/tests/program_test/mango_client.rs +++ b/programs/mango-v4/tests/program_test/mango_client.rs @@ -2501,7 +2501,6 @@ impl ClientInstruction for TokenUpdateIndexAndRateInstruction { pub struct ComputeAccountDataInstruction { pub account: Pubkey, - pub health_type: HealthType, } #[async_trait::async_trait(?Send)] impl ClientInstruction for ComputeAccountDataInstruction { diff --git a/programs/mango-v4/tests/test_basic.rs b/programs/mango-v4/tests/test_basic.rs index 6a0673d91..ed3ac06a0 100644 --- a/programs/mango-v4/tests/test_basic.rs +++ b/programs/mango-v4/tests/test_basic.rs @@ -111,15 +111,9 @@ async fn test_basic() -> Result<(), TransportError> { // // TEST: Compute the account health // - send_tx( - solana, - ComputeAccountDataInstruction { - account, - health_type: HealthType::Init, - }, - ) - .await - .unwrap(); + send_tx(solana, ComputeAccountDataInstruction { account }) + .await + .unwrap(); // // TEST: Withdraw funds