Skip to content

Commit

Permalink
Use Text.readFile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Nov 19, 2024
1 parent 49d6547 commit 25e3906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cardano-api/gen/Test/Hedgehog/Golden/ErrorMessage.hs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ checkAgainstGoldenFile
-> [String]
-> m ()
checkAgainstGoldenFile goldenFile actualLines = GHC.withFrozenCallStack $ do
referenceLines <- List.lines <$> H.readFile goldenFile
referenceLines <- List.lines . Text.unpack <$> liftIO (Text.readFile goldenFile)
let difference = getGroupedDiff actualLines referenceLines
case difference of
[] -> pure ()
Expand Down

0 comments on commit 25e3906

Please sign in to comment.