@@ -167,13 +167,10 @@ fn test_esplora_syncs() {
167
167
let confirmable = TestConfirmable :: new ( ) ;
168
168
169
169
// Check we pick up on new best blocks
170
- let expected_height = 0u32 ;
171
- assert_eq ! ( confirmable. best_block. lock( ) . unwrap( ) . 1 , expected_height) ;
170
+ assert_eq ! ( confirmable. best_block. lock( ) . unwrap( ) . 1 , 0 ) ;
172
171
173
172
tx_sync. sync ( vec ! [ & confirmable] ) . unwrap ( ) ;
174
-
175
- let expected_height = bitcoind. client . get_block_count ( ) . unwrap ( ) as u32 ;
176
- assert_eq ! ( confirmable. best_block. lock( ) . unwrap( ) . 1 , expected_height) ;
173
+ assert_eq ! ( confirmable. best_block. lock( ) . unwrap( ) . 1 , 102 ) ;
177
174
178
175
let events = std:: mem:: take ( & mut * confirmable. events . lock ( ) . unwrap ( ) ) ;
179
176
assert_eq ! ( events. len( ) , 1 ) ;
@@ -253,13 +250,10 @@ async fn test_esplora_syncs() {
253
250
let confirmable = TestConfirmable :: new ( ) ;
254
251
255
252
// Check we pick up on new best blocks
256
- let expected_height = 0u32 ;
257
- assert_eq ! ( confirmable. best_block. lock( ) . unwrap( ) . 1 , expected_height) ;
253
+ assert_eq ! ( confirmable. best_block. lock( ) . unwrap( ) . 1 , 0 ) ;
258
254
259
255
tx_sync. sync ( vec ! [ & confirmable] ) . await . unwrap ( ) ;
260
-
261
- let expected_height = bitcoind. client . get_block_count ( ) . unwrap ( ) as u32 ;
262
- assert_eq ! ( confirmable. best_block. lock( ) . unwrap( ) . 1 , expected_height) ;
256
+ assert_eq ! ( confirmable. best_block. lock( ) . unwrap( ) . 1 , 102 ) ;
263
257
264
258
let events = std:: mem:: take ( & mut * confirmable. events . lock ( ) . unwrap ( ) ) ;
265
259
assert_eq ! ( events. len( ) , 1 ) ;
0 commit comments