Skip to content

Commit 0915796

Browse files
committed
chore: fix failing unit test
1 parent 57f44d7 commit 0915796

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

stackslib/src/net/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3325,7 +3325,9 @@ pub mod test {
33253325
self.network.nakamoto_state_machine_passes,
33263326
nakamoto_passes + 1
33273327
);
3328-
let epoch2_expected_passes = if self.network.stacks_tip.is_nakamoto {
3328+
let epoch2_expected_passes = if self.network.stacks_tip.is_nakamoto
3329+
&& !self.network.connection_opts.force_nakamoto_epoch_transition
3330+
{
33293331
epoch2_passes
33303332
} else {
33313333
epoch2_passes + 1
@@ -3431,7 +3433,9 @@ pub mod test {
34313433
self.network.nakamoto_state_machine_passes,
34323434
nakamoto_passes + 1
34333435
);
3434-
let epoch2_expected_passes = if self.network.stacks_tip.is_nakamoto {
3436+
let epoch2_expected_passes = if self.network.stacks_tip.is_nakamoto
3437+
&& !self.network.connection_opts.force_nakamoto_epoch_transition
3438+
{
34353439
epoch2_passes
34363440
} else {
34373441
epoch2_passes + 1

0 commit comments

Comments
 (0)