File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
crates/cdk-integration-tests/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11use std:: sync:: Arc ;
22
3- use anyhow:: { bail, Result } ;
3+ use anyhow:: { anyhow , bail, Result } ;
44use cdk:: amount:: { Amount , SplitTarget } ;
55use cdk:: nuts:: nut00:: ProofsMethods ;
66use cdk:: nuts:: { MintQuoteState , NotificationPayload , State } ;
@@ -86,7 +86,7 @@ pub async fn wait_for_mint_to_be_paid(
8686 }
8787 }
8888 }
89- Ok ( ( ) )
89+ Err ( anyhow ! ( "Subscription ended without quote being paid" ) )
9090 } ;
9191
9292 let timeout_future = timeout ( Duration :: from_secs ( timeout_secs) , wait_future) ;
@@ -114,7 +114,7 @@ pub async fn wait_for_mint_to_be_paid(
114114 result = timeout_future => {
115115 match result {
116116 Ok ( payment_result) => payment_result,
117- Err ( _) => Err ( anyhow:: anyhow !( "Timeout waiting for mint quote to be paid" ) ) ,
117+ Err ( _) => Err ( anyhow!( "Timeout waiting for mint quote to be paid" ) ) ,
118118 }
119119 }
120120 result = periodic_task => {
You can’t perform that action at this time.
0 commit comments