Page MenuHomePhabricator

[util] allow scheduler to be mocked
ClosedPublic

Authored by deadalnix on Jun 10 2020, 13:15.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABCe589af8c3391: [util] allow scheduler to be mocked
Summary

Add MockForward method to the scheduler that mimics going into the future by rescheduling all items on the taskQueue to be sooner.

This is a partial backport of Core PR18037 : https://github.com/bitcoin/bitcoin/pull/18037/commits/a6f63598adb880a75e1571aac58338c17fa7ad53

Test Plan
ninja all check-all

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.Jun 10 2020, 15:07