From 37a8baf88d2aed7516f7e5a7e9726f1336f5f01f Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 15 Jan 2025 17:22:31 +0000 Subject: [PATCH] fix pay_iota_tests --- crates/iota-core/src/unit_tests/pay_iota_tests.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/iota-core/src/unit_tests/pay_iota_tests.rs b/crates/iota-core/src/unit_tests/pay_iota_tests.rs index d76ce1419c7..a412ea2be79 100644 --- a/crates/iota-core/src/unit_tests/pay_iota_tests.rs +++ b/crates/iota-core/src/unit_tests/pay_iota_tests.rs @@ -70,7 +70,7 @@ async fn test_pay_iota_failure_insufficient_gas_balance_one_input_coin() { #[tokio::test] async fn test_pay_iota_failure_insufficient_total_balance_one_input_coin() { let (sender, sender_key): (_, AccountKeyPair) = get_key_pair(); - let coin1 = Object::with_id_owner_gas_for_testing(ObjectID::random(), sender, 500100); + let coin1 = Object::with_id_owner_gas_for_testing(ObjectID::random(), sender, 1000100); let recipient1 = dbg_addr(1); let recipient2 = dbg_addr(2); @@ -80,7 +80,7 @@ async fn test_pay_iota_failure_insufficient_total_balance_one_input_coin() { vec![100, 100], sender, sender_key, - 500000, + 1000000, ) .await; @@ -123,18 +123,18 @@ async fn test_pay_iota_failure_insufficient_gas_balance_multiple_input_coins() { #[tokio::test] async fn test_pay_iota_failure_insufficient_total_balance_multiple_input_coins() { let (sender, sender_key): (_, AccountKeyPair) = get_key_pair(); - let coin1 = Object::with_id_owner_gas_for_testing(ObjectID::random(), sender, 204000); - let coin2 = Object::with_id_owner_gas_for_testing(ObjectID::random(), sender, 303000); + let coin1 = Object::with_id_owner_gas_for_testing(ObjectID::random(), sender, 404000); + let coin2 = Object::with_id_owner_gas_for_testing(ObjectID::random(), sender, 603000); let recipient1 = dbg_addr(1); let recipient2 = dbg_addr(2); let res = execute_pay_iota( vec![coin1, coin2], vec![recipient1, recipient2], - vec![4000, 4000], + vec![8000, 8000], sender, sender_key, - 500000, + 1000000, ) .await; assert_eq!(