Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unit test active_transactions.fork_replacement_tally #3914

Conversation

dsiganos
Copy link
Contributor

The test had at least the following problems:

  1. Issued blocks and not allowed the node time to process
    the blocks and start elections
  2. It expected blocks to be processed in the order that they were created
  3. Doing flood blood without clearing the publish filter
  4. Not allowing time for blocks and votes to be processed in the background
  5. Not allowing for the vote to the final winning block to arrive before the block

The test had at least the following problems:
1. Issued blocks and not allowed the node time to process
   the blocks and start elections
2. It expected blocks to be processed in the order that they were created
3. Doing flood blood without clearing the publish filter
4. Not allowing time for blocks and votes to be processed in the background
5. Not allowing for the vote to the final winning block to arrive before
   the block
@dsiganos dsiganos force-pushed the fix_unit_test_active_transactions_fork_replacement_tally branch from 8f9ded8 to 6a7ab23 Compare August 25, 2022 17:20
Copy link
Contributor

@pwojcikdev pwojcikdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fact that a dummy vote is never ejected from election needs further investigation. Fixing that is of course is out of scope of this PR. It's nice to finally have this test stabilised

@dsiganos
Copy link
Contributor Author

I wonder if we should try and make the test process the reps in order so that the last 9 reps are always the ones in the election. Like the original author intended. Although, due to rep crawler lagging behind in time, syncing it might be tricky...

@dsiganos dsiganos merged commit 41b723b into nanocurrency:develop Aug 27, 2022
@dsiganos dsiganos deleted the fix_unit_test_active_transactions_fork_replacement_tally branch August 27, 2022 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants