Works
This commit is contained in:
+1
-2
@@ -13,8 +13,7 @@ import Test.Hspec
|
||||
|
||||
spec :: Spec
|
||||
spec = describe "runController" $ do
|
||||
it "feeds inbound events through the machine and forwards service calls" $ do
|
||||
bus <- newBus 0
|
||||
it "feeds inbound events through the machine and forwards service calls" $ withBus $ \bus -> do
|
||||
_ <- async (runController bus (Controller "test" lightController True))
|
||||
putStrLn "Before the delay"
|
||||
threadDelay 100000 -- let the controller dup its inbound channel
|
||||
|
||||
Reference in New Issue
Block a user