Skip to content

Commit

Permalink
Use assertWith to clarify property prop_listRegisteredPools.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Sep 16, 2020
1 parent 013623e commit 8b81962
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/core/test/unit/Cardano/Pool/DB/Properties.hs
Expand Up @@ -911,7 +911,8 @@ prop_listRegisteredPools DBLayer {..} entries =
monitor $ counterexample $ unlines
[ "Read from DB: " <> show pools
]
assert (L.sort pools == L.sort (view #poolId <$> entries))
assertWith "pools written == pools retrieved"
(L.sort pools == L.sort (view #poolId <$> entries))

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

0 comments on commit 8b81962

Please sign in to comment.