mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-02 06:46:06 -04:00
Add test for Bob's manual cancel and refund
This commit is contained in:
parent
ad2aefc2a5
commit
c9adbde5d5
7 changed files with 74 additions and 7 deletions
|
@ -145,14 +145,14 @@ impl TestContext {
|
|||
pub async fn stop_and_resume_bob_from_db(
|
||||
&mut self,
|
||||
join_handle: BobEventLoopJoinHandle,
|
||||
) -> bob::Swap {
|
||||
) -> (bob::Swap, BobEventLoopJoinHandle) {
|
||||
join_handle.0.abort();
|
||||
|
||||
let (swap, event_loop) = self.bob_params.builder().build().await.unwrap();
|
||||
|
||||
tokio::spawn(async move { event_loop.run().await });
|
||||
let join_handle = tokio::spawn(async move { event_loop.run().await });
|
||||
|
||||
swap
|
||||
(swap, BobEventLoopJoinHandle(join_handle))
|
||||
}
|
||||
|
||||
pub async fn assert_alice_redeemed(&self, state: AliceState) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue