Fix broken test

This commit is contained in:
Chris Penner 2022-11-17 11:06:17 -06:00
parent 6b8424df41
commit b056def9fa
2 changed files with 10 additions and 9 deletions

View File

@ -8,7 +8,8 @@
{-# LANGUAGE ScopedTypeVariables #-}
module Unison.Runtime.Interface
( withRuntime,
( startRuntime,
withRuntime,
standalone,
runStandalone,
StoredCache,

View File

@ -60,14 +60,14 @@ bad r = EasyTest.expectLeft r >> done
test :: Test ()
test = do
rt <- io (RTI.startRuntime False RTI.OneOff "")
scope "unison-src"
. tests
$ [ go rt shouldPassNow good,
go rt shouldFailNow bad,
go rt shouldPassLater (pending . bad),
go rt shouldFailLater (pending . good)
]
using (RTI.startRuntime False RTI.OneOff "") RTI.terminate \rt -> do
scope "unison-src"
. tests
$ [ go rt shouldPassNow good,
go rt shouldFailNow bad,
go rt shouldPassLater (pending . bad),
go rt shouldFailLater (pending . good)
]
shouldPassPath, shouldFailPath :: String
shouldPassPath = "unison-src/tests"