Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug in the QC shrinker for the p2p governor mock environment
The shrink function for GovernorScripts (a type within the PeerGraph within the GovernorMockEnvironment) was in some corner cases returning "shrunk" values that were the same as the original. This violates the shrink property and causes shrinking to loop. This fix allow test cases exhibiting property violations involving the p2p governor to be shrunk, where previously the shrinking would usually loop. I found this bug by adding some extra properties to check the shrinking functions satisfy the shrink propery. That infrastructure is not included in this patch, but will be added in a later patch.
- Loading branch information