mirror of
https://github.com/unisonweb/unison.git
synced 2024-10-04 21:57:25 +03:00
Fix broken test
This commit is contained in:
parent
6b8424df41
commit
b056def9fa
@ -8,7 +8,8 @@
|
||||
{-# LANGUAGE ScopedTypeVariables #-}
|
||||
|
||||
module Unison.Runtime.Interface
|
||||
( withRuntime,
|
||||
( startRuntime,
|
||||
withRuntime,
|
||||
standalone,
|
||||
runStandalone,
|
||||
StoredCache,
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user