Skip to content

Commit

Permalink
Use the function name in the describe scope when unit testing about a…
Browse files Browse the repository at this point in the history
… specific function


This helps in finding relevant tests and eases future renaming of this function.

Co-authored-by: Sebastian Nagel <[email protected]>
  • Loading branch information
ffakenz and ch1bo authored Nov 27, 2023
1 parent 9aae4a5 commit 42d4d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydra-node/test/Hydra/NetworkSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec = do
prop "can roundtrip CBOR encoding/decoding of Hydra Message" $ prop_canRoundtripCBOREncoding @(Message SimpleTx)
roundtripAndGoldenSpecs (Proxy @(Message SimpleTx))

describe "Message Persistence" $ do
describe "configureMessagePersistence" $ do
it "throws ParameterMismatch when configuring given number of acks does not match number of parties" $ do
withTempDir "persistence" $ \dir -> do
writeFile (acksFile dir) "[0,0,0]"
Expand Down

0 comments on commit 42d4d4c

Please sign in to comment.