File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
testnet/stacks-node/src/tests Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -211,11 +211,12 @@ fn microblocks_disabled() {
211
211
) ;
212
212
assert_eq ! ( account. nonce, 1 ) ;
213
213
214
- info ! (
215
- "Microblocks assembled: {}" ,
216
- test_observer:: get_microblocks( ) . len( )
214
+ let microblocks_assembled = test_observer:: get_microblocks ( ) . len ( ) ;
215
+ info ! ( "Microblocks assembled: {microblocks_assembled}" , ) ;
216
+ assert ! (
217
+ microblocks_assembled > 0 ,
218
+ "There should be at least 1 microblock assembled"
217
219
) ;
218
- assert_eq ! ( test_observer:: get_microblocks( ) . len( ) , 1 ) ;
219
220
220
221
let miner_nonce_before_microblock_assembly = get_account ( & http_origin, & miner_account) . nonce ;
221
222
@@ -244,8 +245,8 @@ fn microblocks_disabled() {
244
245
) ;
245
246
assert_eq ! ( account. nonce, 1 ) ;
246
247
247
- // but we should have assembled and announced at least 1 to the observer
248
- assert ! ( test_observer:: get_microblocks( ) . len( ) >= 2 ) ;
248
+ // but we should have assembled and announced at least 1 more block to the observer
249
+ assert ! ( test_observer:: get_microblocks( ) . len( ) > microblocks_assembled ) ;
249
250
info ! (
250
251
"Microblocks assembled: {}" ,
251
252
test_observer:: get_microblocks( ) . len( )
You can’t perform that action at this time.
0 commit comments