integration-0.1.0
Safe HaskellNone
LanguageGHC2021

Test.Events

Synopsis

Documentation

mkEvent :: (ToJSON a1, ToJSON a2) => a1 -> a2 -> Bool -> Value Source #

assertFindsEvent :: HasCallStack => EventWebSocket -> (HasCallStack => Value -> App a) -> App a Source #

Tolerates and consumes other events before expected event

data NoEvent Source #

Constructors

NoEvent 
WebSocketDied 

Instances

Instances details
ToJSON NoEvent Source # 
Instance details

Defined in Test.Events

assertNoEvent_ :: HasCallStack => EventWebSocket -> App () Source #

Similar to assertNoEvent from Testlib, but with rabbitMQ typing (`/event` end-point, not `/await`).

emptyQueue :: (HasCallStack, MakesValue user) => user -> String -> App () Source #

waitUntilNoRabbitMqConns :: HasCallStack => BackendResource -> App () Source #

Only considers connections from cannon

killAllRabbitMqConns :: HasCallStack => BackendResource -> App [Connection] Source #

Only kills connections from cannon and returns them