integration-0.1.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Test.Events

Synopsis

Documentation

assertFindsEvent :: forall a. 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`).

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

Only considers connections from cannon

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

Only kills connections from cannon and returns them