Skip to content

Commit

Permalink
Use assertWith in prop_pool{Registration,Retirement}.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Aug 13, 2020
1 parent 4e7307b commit b872838
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/core/test/unit/Cardano/Pool/DB/Properties.hs
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,8 @@ prop_poolRegistration DBLayer {..} entries =
, "Read from DB: "
, show entriesOut
]
assert (entriesIn == entriesOut)
assertWith "entriesIn == entriesOut"
$ entriesIn == entriesOut

-- | Heavily relies upon the fact that generated values of 'PoolId' are unique.
prop_poolRetirement
Expand All @@ -501,7 +502,8 @@ prop_poolRetirement DBLayer {..} entries =
, "Read from DB: "
, show entriesOut
]
assert (entriesIn == entriesOut)
assertWith "entriesIn == entriesOut"
$ entriesIn == entriesOut

-- For the same pool, write /multiple/ pool registration certificates to the
-- database and then read back the current registration certificate, verifying
Expand Down

0 comments on commit b872838

Please sign in to comment.