HomePhabricator

[util] allow scheduler to be mocked

Description

[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

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D6499

Details

Provenance
Amiti Uttarwar <amiti@uttarwar.org>Authored on Jan 28 2020, 23:26
deadalnixCommitted on Jun 10 2020, 15:24
deadalnixPushed on Jun 10 2020, 15:24
Reviewer
Restricted Project
Differential Revision
D6499: [util] allow scheduler to be mocked
Parents
rABC209aacadfa9e: Move jsonrpcrequest to request
Branches
Unknown
Tags
Unknown