Skip to content

Commit 4fa4588

Browse files
committed
tests: TestCommon: nixEvalString: upd
1 parent 2d2c17c commit 4fa4588

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/TestCommon.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ hnixEvalText opts src =
4747
nixEvalString :: Text -> IO Text
4848
nixEvalString expr =
4949
do
50-
(coerce -> fp, h) <- mkstemp "nix-test-eval"
50+
(fp, h) <- mkstemp "nix-test-eval"
5151
Text.hPutStr h expr
5252
hClose h
53-
res <- nixEvalFile fp
54-
removeLink $ coerce fp
53+
res <- nixEvalFile $ coerce fp
54+
removeLink $ fp
5555
pure res
5656

5757
nixEvalFile :: Path -> IO Text

0 commit comments

Comments
 (0)