TMVar lock to avoid subscriber and client processing in parallel, fix the test (#90)

* TMVar lock to avoid subscriber and client processing in parallel, fix the test

* run SMP server as part of the test

* stabilize tests

* update simplexmq

* test: stabilize getting invitation from terminal

* remove unused import

* simplify test
This commit is contained in:
Evgeny Poberezkin
2021-08-05 20:51:48 +01:00
committed by GitHub
parent a9d32db404
commit d23417596e
7 changed files with 243 additions and 102 deletions

View File

@@ -28,7 +28,8 @@ data ChatController = ChatController
idsDrg :: TVar ChaChaDRG,
inputQ :: TBQueue InputEvent,
notifyQ :: TBQueue Notification,
sendNotification :: Notification -> IO ()
sendNotification :: Notification -> IO (),
chatLock :: TMVar ()
}
data InputEvent = InputCommand String | InputControl Char