Skip to content

Commit

Permalink
remove tests that test removed validation
Browse files Browse the repository at this point in the history
  • Loading branch information
NotJeremyLiu committed Oct 29, 2024
1 parent bc8fa45 commit 5af0f5b
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions contracts/adapters/swap/astrovault/tests/test_execute_swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ Expect Success
Expect Error
- Unauthorized Caller (Only the stored entry point contract can call this function)
- No Coin Sent
- Bad Coin Sent
- More Than One Coin Sent
- No Swap Operations
*/

// Define test parameters
Expand Down Expand Up @@ -157,15 +155,6 @@ struct Params {
expected_error: None,
};
"Multiple Swap Operations")]
#[test_case(
Params {
caller: "entry_point".to_string(),
info_funds: vec![Coin::new(100, "os")],
swap_operations: vec![],
expected_messages: vec![],
expected_error: Some(ContractError::SwapOperationsEmpty),
};
"No Swap Operations")]
#[test_case(
Params {
caller: "entry_point".to_string(),
Expand All @@ -182,24 +171,6 @@ struct Params {
expected_error: Some(ContractError::Payment(cw_utils::PaymentError::NoFunds{})),
};
"No Coin Sent - Expect Error")]
#[test_case(
Params {
caller: "entry_point".to_string(),
info_funds: vec![
Coin::new(100, "un"), // should be os
],
swap_operations: vec![
SwapOperation {
pool: "pool_1".to_string(),
denom_in: "os".to_string(),
denom_out: "ua".to_string(),
interface: None,
}
],
expected_messages: vec![],
expected_error: Some(ContractError::CoinInDenomMismatch{}),
};
"Bad Coin Sent - Expect Error")]
#[test_case(
Params {
caller: "entry_point".to_string(),
Expand Down

0 comments on commit 5af0f5b

Please sign in to comment.