Skip to content

Commit

Permalink
Remove unnecessary ordering restriction from prop_listRegisteredPools.
Browse files Browse the repository at this point in the history
The `listRegisteredPools` operation doesn't guarantee to list pools in
any particular order, so our property tests also shouldn't require any
particular order.
  • Loading branch information
jonathanknowles committed Sep 14, 2020
1 parent a2005f6 commit c416875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/test/unit/Cardano/Pool/DB/Properties.hs
Expand Up @@ -911,7 +911,7 @@ prop_listRegisteredPools DBLayer {..} entries =
monitor $ counterexample $ unlines
[ "Read from DB: " <> show pools
]
assert (pools == (view #poolId <$> reverse entries))
assert (Set.fromList pools == Set.fromList (view #poolId <$> entries))

-- | Test that `listRetiredPools` returns the correct set of retirements for
-- any given epoch.
Expand Down

0 comments on commit c416875

Please sign in to comment.