Skip to content

Commit

Permalink
Use assertWith in prop_rollbackRetirement.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Aug 13, 2020
1 parent b872838 commit cd28a2f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/core/test/unit/Cardano/Pool/DB/Properties.hs
Original file line number Diff line number Diff line change
Expand Up @@ -760,9 +760,10 @@ prop_rollbackRetirement DBLayer{..} certificates =
, "\nRetrieved certificate publications: "
, unlines (("\n" <>) . show <$> retrievedPublications)
]
assert $ (==)
retrievedPublications
expectedPublications
assertWith "retrieved publications match expectations" $
(==)
retrievedPublications
expectedPublications

poolIds :: [PoolId]
poolIds = view #poolId <$> certificates
Expand Down

0 comments on commit cd28a2f

Please sign in to comment.