Skip to content

Commit

Permalink
debug tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hylcore-V committed Oct 2, 2021
1 parent 366655f commit c3882e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -850,9 +850,11 @@ pub mod subscrypt {

let linked_list: &mut LinkedList =
&mut self.providers.get_mut(&caller).unwrap().payment_manager;
linked_list.head = t.current_linked_list_head;

linked_list.length -= t.reduced_length;
t.withdrawing_amount
linked_list.head = t.current_linked_list_head;

return t.withdrawing_amount;
}

/// `users` can use this function to easily refund their subscription as the policy of that
Expand Down
4 changes: 0 additions & 4 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,6 @@ pub mod tests {
subscrypt.withdraw(),
expected
);
assert_eq!(
subscrypt.withdraw(),
expected
);
}
/// Simple scenario that `alice` register as a provider and `bob` will subscribe to her second plan
/// and then `eve` tries to withdraw locked money but she can't.
Expand Down

0 comments on commit c3882e9

Please sign in to comment.