-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(sync-tools): implement
waitUntilElectionResults
(#10385)
closes: #10378 ## Description This PR adds a general purpose method that waits for the latest governance question's result based on a desired outcome. Could be used for operations like waiting for a parameter change to complete in `a3p-integration`. ### Security Considerations None. ### Scaling Considerations None. ### Documentation Considerations None. ### Testing Considerations Current unit tests check that; * questionHandle's match between `latestQuestion` and `latestOutcome`. This makes sure outcome belongs the latest question. * `outcome` matches the desired result * `deadline` of the question has to be known beforehand in order to make sure the latest question is indeed the one we just asked during our parameter change operation. ### Upgrade Considerations None.
- Loading branch information
Showing
4 changed files
with
306 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.