File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -100,17 +100,30 @@ impl TestFramework {
100
100
}
101
101
102
102
fn get_nodes_as_log_provider ( & self ) -> Vec < & dyn LogPathProviderErased > {
103
+ let test_case = & self . ctx . config . test_case ;
104
+
103
105
self . ctx
104
106
. config
105
107
. bitcoin
106
108
. iter ( )
107
109
. map ( LogPathProvider :: as_erased)
110
+ . map ( Option :: Some )
108
111
. chain ( vec ! [
109
- LogPathProvider :: as_erased( & self . ctx. config. sequencer) ,
110
- LogPathProvider :: as_erased( & self . ctx. config. full_node) ,
111
- LogPathProvider :: as_erased( & self . ctx. config. batch_prover) ,
112
- LogPathProvider :: as_erased( & self . ctx. config. light_client_prover) ,
112
+ test_case
113
+ . with_sequencer
114
+ . then( || LogPathProvider :: as_erased( & self . ctx. config. sequencer) ) ,
115
+ test_case
116
+ . with_full_node
117
+ . then( || LogPathProvider :: as_erased( & self . ctx. config. full_node) ) ,
118
+ test_case
119
+ . with_batch_prover
120
+ . then( || LogPathProvider :: as_erased( & self . ctx. config. batch_prover) ) ,
121
+ test_case
122
+ . with_light_client_prover
123
+ . then( || LogPathProvider :: as_erased( & self . ctx. config. light_client_prover) ) ,
113
124
] )
125
+ . into_iter ( )
126
+ . flatten ( )
114
127
. collect ( )
115
128
}
116
129
You can’t perform that action at this time.
0 commit comments