11use bip300301_enforcer_integration_tests:: {
22 setup:: { Mode , Network } ,
3- util:: AsyncTrial ,
3+ util:: { AsyncTrial , TestFailureCollector , TestFileRegistry } ,
44} ;
55use futures:: { FutureExt , future:: BoxFuture } ;
66
@@ -13,24 +13,48 @@ use crate::{
1313
1414fn deposit_withdraw_roundtrip (
1515 bin_paths : BinPaths ,
16+ file_registry : TestFileRegistry ,
17+ failure_collector : TestFailureCollector ,
1618) -> AsyncTrial < BoxFuture < ' static , anyhow:: Result < ( ) > > > {
17- AsyncTrial :: new ( "deposit_withdraw_roundtrip" , async move {
18- bip300301_enforcer_integration_tests:: integration_test:: deposit_withdraw_roundtrip :: < PostSetup > (
19- bin_paths. others , Network :: Regtest , Mode :: Mempool ,
20- Init {
21- thunder_app : bin_paths. thunder ,
22- data_dir_suffix : None ,
23- } ,
24- ) . await
25- } . boxed ( ) )
19+ AsyncTrial :: new (
20+ "deposit_withdraw_roundtrip" ,
21+ async move {
22+ let ( res_tx, _) = futures:: channel:: mpsc:: unbounded ( ) ;
23+ let post_setup = bip300301_enforcer_integration_tests:: setup:: setup (
24+ & bin_paths. others ,
25+ Network :: Regtest ,
26+ Mode :: Mempool ,
27+ res_tx
28+ ) . await ?;
29+ bip300301_enforcer_integration_tests:: integration_test:: deposit_withdraw_roundtrip :: < PostSetup > (
30+ post_setup,
31+ Init {
32+ thunder_app : bin_paths. thunder ,
33+ data_dir_suffix : None ,
34+ } ,
35+ ) . await
36+ } . boxed ( ) ,
37+ file_registry,
38+ failure_collector,
39+ )
2640}
2741
2842pub fn tests (
2943 bin_paths : BinPaths ,
44+ file_registry : TestFileRegistry ,
45+ failure_collector : TestFailureCollector ,
3046) -> Vec < AsyncTrial < BoxFuture < ' static , anyhow:: Result < ( ) > > > > {
3147 vec ! [
32- deposit_withdraw_roundtrip( bin_paths. clone( ) ) ,
33- ibd_trial( bin_paths. clone( ) ) ,
34- unknown_withdrawal_trial( bin_paths) ,
48+ deposit_withdraw_roundtrip(
49+ bin_paths. clone( ) ,
50+ file_registry. clone( ) ,
51+ failure_collector. clone( ) ,
52+ ) ,
53+ ibd_trial(
54+ bin_paths. clone( ) ,
55+ file_registry. clone( ) ,
56+ failure_collector. clone( ) ,
57+ ) ,
58+ unknown_withdrawal_trial( bin_paths, file_registry, failure_collector) ,
3559 ]
3660}
0 commit comments