Skip to content

Commit

Permalink
fix: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v3us committed Dec 21, 2022
1 parent 260ee01 commit 354ddec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 23 deletions.
11 changes: 0 additions & 11 deletions contracts/cw-croncat/src/tests/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -3153,7 +3143,6 @@ fn queries_fees() {
&vec![],
)
.unwrap();
print!("{:#?}", res);

assert!(res.events.iter().any(|ev| ev
.attributes
Expand Down
1 change: 0 additions & 1 deletion contracts/cw-croncat/src/tests/receiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down
22 changes: 11 additions & 11 deletions contracts/cw-croncat/src/tests/tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Vec<String>>(),
all_tasks
.iter()
.map(|t| t.task_hash.clone())
.collect::<Vec<String>>(),
);
// println!(
// "half_tasks: {:?}\n hash_vec:{:?}",
// part_of_tasks
// .iter()
// .map(|t| t.task_hash.clone())
// .collect::<Vec<String>>(),
// all_tasks
// .iter()
// .map(|t| t.task_hash.clone())
// .collect::<Vec<String>>(),
// );

// Check it's in right order
for i in 0..expected_amnt {
Expand Down

0 comments on commit 354ddec

Please sign in to comment.