Skip to content

Commit

Permalink
Fix mlocked memory leak in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tdammers committed Jan 19, 2023
1 parent cb5b787 commit 4c0f13b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cardano-crypto-tests/src/Test/Crypto/KES.hs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,10 @@ testKESAlgorithm lock _pm _pv n =
, testProperty "SignKey DirectDeserialise" $
ioPropertyWithSK @v lock $ \sk -> do
direct <- directSerialiseToBS (fromIntegral $ sizeSignKeyKES (Proxy @v)) sk
prop_no_thunks_IO (directDeserialiseFromBS @(SignKeyKES v) $! direct)
bracket
(directDeserialiseFromBS @(SignKeyKES v) $! direct)
forgetSignKeyKES
(prop_no_thunks_IO . return)
]

, testProperty "same VerKey " $ prop_deriveVerKeyKES (Proxy @IO) (Proxy @v)
Expand Down

0 comments on commit 4c0f13b

Please sign in to comment.