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 tests using election_scheduler::flush() #3961

Merged

Conversation

pwojcikdev
Copy link
Contributor

Small fix for a missing ASSERT_TIMELY

@pwojcikdev pwojcikdev changed the title Fix election_scheduler tests Fix tests using election_scheduler::flush() Sep 27, 2022
@pwojcikdev pwojcikdev requested review from dsiganos and removed request for dsiganos September 27, 2022 20:42
clemahieu
clemahieu previously approved these changes Sep 27, 2022
@pwojcikdev
Copy link
Contributor Author

@clemahieu I pushed one more commit fixing more test cases using the problematic flush

@dsiganos
Copy link
Contributor

dsiganos commented Sep 27, 2022

Let's remove the scheduler flush from the test cases where we fixed it.
We are supposed to completely remove it one day, so remove it now where we know it is not needed, to make the removal easier.

@pwojcikdev
Copy link
Contributor Author

@dsiganos Good point, those flush calls are not needed anymore. Already pushed a commit.

@@ -47,7 +47,7 @@ TEST (election_scheduler, activate_one_flush)
system.nodes[0]->ledger.process (system.nodes[0]->store.tx_begin_write (), *send1);
system.nodes[0]->scheduler.activate (nano::dev::genesis_key.pub, system.nodes[0]->store.tx_begin_read ());
system.nodes[0]->scheduler.flush ();
Copy link
Contributor

@dsiganos dsiganos Sep 27, 2022

Choose a reason for hiding this comment

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

this schedule flush can go to

dsiganos
dsiganos previously approved these changes Sep 27, 2022
@pwojcikdev pwojcikdev merged commit 9dde6c8 into nanocurrency:develop Sep 28, 2022
@pwojcikdev pwojcikdev deleted the prs/tests/election-scheduler branch September 28, 2022 00:17
clemahieu pushed a commit to clemahieu/nano-node that referenced this pull request Oct 1, 2022
* Fix tests using election_scheduler::flush

* Fix more tests using `election_scheduler::flush`

* Remove flush calls

* One more flush removed
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

3 participants