-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
p2p-governor: test asynchronous demotiions
This is only enabled in the re-enabled `prop_governor_nolivelock`. Running the test throws an exception (failed assertion), this is a bug fixed in the next commit. If a peer during asynchronous demotion is demoted to 'ColdPeer', we interpret this as an error and throw an exception. This corresponds to a real scenario. This is important because otherwise the governor will return and finish the transition without running its error handlers which bring the governor to the right state. The above corresponds to the property of 'PeerStateActions': on failures the peer state changes to 'PeerCold'.
- Loading branch information
Showing
1 changed file
with
168 additions
and
36 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