@@ -7,7 +7,7 @@ use citrea_e2e::{
7
7
test_case:: { TestCase , TestCaseRunner } ,
8
8
Result ,
9
9
} ;
10
- use tracing:: debug ;
10
+ use tracing:: info ;
11
11
12
12
/// Integration test for Clementine gRPC clients.
13
13
///
@@ -123,12 +123,17 @@ impl<const WITH_DOCKER: bool> TestCase for ClementineIntegrationTest<WITH_DOCKER
123
123
use citrea_e2e:: bitcoin:: DEFAULT_FINALITY_DEPTH ;
124
124
// Mine a bunch of blocks on DA
125
125
let da = f. bitcoin_nodes . get ( 0 ) . unwrap ( ) ;
126
+
126
127
let target_height = da. get_block_count ( ) . await ?;
128
+ if target_height < 100 {
129
+ da. generate ( 100 - target_height) . await ?;
130
+ }
131
+
127
132
// round down to nearest 100, HCP proves in 100 block batches
128
133
let target_height = target_height / 100 * 100 ;
129
134
130
- // finalize the start_height
131
- da. generate ( DEFAULT_FINALITY_DEPTH ) . await ?;
135
+ // ensure target_height finalized
136
+ da. generate ( DEFAULT_FINALITY_DEPTH + 1 ) . await ?;
132
137
133
138
// Ask aggregator for entity statuses until HCP height catches up
134
139
let mut attempts = 0 ;
@@ -150,7 +155,7 @@ impl<const WITH_DOCKER: bool> TestCase for ClementineIntegrationTest<WITH_DOCKER
150
155
} ;
151
156
let h = status. hcp_last_proven_height . unwrap_or ( 0 ) as u64 ;
152
157
if h < target_height {
153
- debug ! (
158
+ info ! (
154
159
"entity {:?} behind, {h} (height) < {target_height} (target)" ,
155
160
es. entity_id. unwrap( )
156
161
) ;
@@ -187,6 +192,7 @@ async fn test_clementine_integration_w_docker() -> Result<()> {
187
192
}
188
193
189
194
#[ tokio:: test]
195
+ #[ ignore = "won't pass before Clementine releases again with fixes" ]
190
196
async fn test_clementine_integration_wo_docker ( ) -> Result < ( ) > {
191
197
TestCaseRunner :: new ( ClementineIntegrationTest :: < false > )
192
198
. run ( )
0 commit comments