Skip to content

Commit 51d6000

Browse files
committed
Fix microblocks disabled test to allow at least one rather than strictly one microblocks
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent fdcfcdf commit 51d6000

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

testnet/stacks-node/src/tests/epoch_25.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,12 @@ fn microblocks_disabled() {
211211
);
212212
assert_eq!(account.nonce, 1);
213213

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"
217219
);
218-
assert_eq!(test_observer::get_microblocks().len(), 1);
219220

220221
let miner_nonce_before_microblock_assembly = get_account(&http_origin, &miner_account).nonce;
221222

@@ -244,8 +245,8 @@ fn microblocks_disabled() {
244245
);
245246
assert_eq!(account.nonce, 1);
246247

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);
249250
info!(
250251
"Microblocks assembled: {}",
251252
test_observer::get_microblocks().len()

0 commit comments

Comments
 (0)