From 354ddec49787077434804e376aefa583b286b89d Mon Sep 17 00:00:00 2001 From: Deveus Date: Thu, 22 Dec 2022 00:18:59 +0200 Subject: [PATCH] fix: minor fixes --- contracts/cw-croncat/src/tests/manager.rs | 11 ----------- contracts/cw-croncat/src/tests/receiver.rs | 1 - contracts/cw-croncat/src/tests/tasks.rs | 22 +++++++++++----------- 3 files changed, 11 insertions(+), 23 deletions(-) diff --git a/contracts/cw-croncat/src/tests/manager.rs b/contracts/cw-croncat/src/tests/manager.rs index ab7d6578..3b85c4a5 100644 --- a/contracts/cw-croncat/src/tests/manager.rs +++ b/contracts/cw-croncat/src/tests/manager.rs @@ -393,8 +393,6 @@ fn proxy_call_success() -> StdResult<()> { if let Some(value) = attr_value { if v.to_string() != value { has_required_attributes = false; - println!("{:?}", _key); - println!("{:?}", value); } } else { has_required_attributes = false; @@ -623,8 +621,6 @@ fn proxy_callback_fail_cases() -> StdResult<()> { if let Some(value) = attr_value { if v.to_string() != value { has_required_attributes = false; - println!("{:?}", _key); - println!("{:?}", value); } } else { has_required_attributes = false; @@ -851,9 +847,6 @@ fn proxy_callback_block_slots() -> StdResult<()> { if let Some(_key) = attr_key { if let Some(value) = attr_value { if v.to_string() != value { - println!("{:?}", _key); - println!("{:?}", value); - has_required_attributes = false; } } else { @@ -985,8 +978,6 @@ fn proxy_callback_time_slots() -> StdResult<()> { if let Some(value) = attr_value { if v.to_string() != value { has_required_attributes = false; - println!("{:?}", _key); - println!("{:?}", value); } } else { has_required_attributes = false; @@ -1778,7 +1769,6 @@ fn test_reschedule_task_with_queries() { for e in create_task_resp.events { for a in e.attributes { if a.key == "task_hash" && a.value.len() > 0 { - println!("{:?}", a.value); task_hash = a.value; } } @@ -3153,7 +3143,6 @@ fn queries_fees() { &vec![], ) .unwrap(); - print!("{:#?}", res); assert!(res.events.iter().any(|ev| ev .attributes diff --git a/contracts/cw-croncat/src/tests/receiver.rs b/contracts/cw-croncat/src/tests/receiver.rs index 42f351b5..2ac8fa37 100644 --- a/contracts/cw-croncat/src/tests/receiver.rs +++ b/contracts/cw-croncat/src/tests/receiver.rs @@ -335,7 +335,6 @@ fn test_cw20_negative() { .unwrap_err() .downcast() .unwrap(); - println!("resp: {resp:?}"); assert!(matches!( resp, ContractError::CoreError(CoreError::NotEnoughCw20 { lack, .. }) if lack == Uint128::from(10_u128))); diff --git a/contracts/cw-croncat/src/tests/tasks.rs b/contracts/cw-croncat/src/tests/tasks.rs index 21b2f6f7..7ae6b64e 100644 --- a/contracts/cw-croncat/src/tests/tasks.rs +++ b/contracts/cw-croncat/src/tests/tasks.rs @@ -217,17 +217,17 @@ fn query_get_tasks_pagination() { let expected_amnt: usize = (tasks_amnt - from_index).try_into().unwrap(); assert_eq!(part_of_tasks.len(), expected_amnt); - println!( - "half_tasks: {:?}\n hash_vec:{:?}", - part_of_tasks - .iter() - .map(|t| t.task_hash.clone()) - .collect::>(), - all_tasks - .iter() - .map(|t| t.task_hash.clone()) - .collect::>(), - ); + // println!( + // "half_tasks: {:?}\n hash_vec:{:?}", + // part_of_tasks + // .iter() + // .map(|t| t.task_hash.clone()) + // .collect::>(), + // all_tasks + // .iter() + // .map(|t| t.task_hash.clone()) + // .collect::>(), + // ); // Check it's in right order for i in 0..expected_amnt {