Skip to content

Commit

Permalink
outbound-governor: fixed shrinking of local root peers
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Apr 25, 2024
1 parent d96248b commit 33093ce
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -879,16 +879,15 @@ instance Arbitrary GovernorMockEnvironment where
publicRootPeers' <- shrinkPublicRootPeers publicRootPeers
]
where
shrinkLocalRootPeers (LocalRootPeers m g) =
[ LocalRootPeers m' g'
| (m', g') <- shrink (m, g)
shrinkLocalRootPeers a =
[ LocalRootPeers.fromGroups g
| g <- shrink (LocalRootPeers.toGroups a)
]
shrinkPublicRootPeers (PublicRootPeers pp bsp lp blp) =
[ PublicRootPeers pp' bsp' lp' blp'
| (pp', bsp', lp', blp') <- shrink (pp, bsp, lp, blp)
]


--
-- Tests for the QC Arbitrary instances
--
Expand Down

0 comments on commit 33093ce

Please sign in to comment.