From c6dfb81decf40cb726d7e0bc9edd387b8940b762 Mon Sep 17 00:00:00 2001 From: Ninjatosba Date: Sun, 8 Dec 2024 22:31:19 +0300 Subject: [PATCH] fix refund out amount test --- .../tests/streamswap_tests/finalize_stream.rs | 30 ++++++++++++++----- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/tests/src/tests/streamswap_tests/finalize_stream.rs b/tests/src/tests/streamswap_tests/finalize_stream.rs index 2d3a1c1..4f84abb 100644 --- a/tests/src/tests/streamswap_tests/finalize_stream.rs +++ b/tests/src/tests/streamswap_tests/finalize_stream.rs @@ -763,13 +763,29 @@ mod finalize_stream_tests { let stream_swap_funds = get_funds_from_res(res); assert_eq!( stream_swap_funds, - vec![( - String::from(test_accounts.creator_1.clone()), - Coin { - denom: "out_denom".to_string(), - amount: Uint128::new(1_000_000) - } - ),] + vec![ + ( + String::from(test_accounts.creator_1.clone()), + Coin { + denom: "out_denom".to_string(), + amount: Uint128::new(10000) + }, + ), + ( + String::from(test_accounts.creator_1.clone()), + Coin { + denom: "in_denom".to_string(), + amount: Uint128::new(197) + }, + ), + ( + String::from(test_accounts.admin.clone()), + Coin { + denom: "in_denom".to_string(), + amount: Uint128::new(1) + }, + ) + ] ); } }