Membrane Core v0.3.0 Membrane.Testing.Pipeline.Assertions View Source
Assertions that can be used with Membrane.Testing.Pipeline
in tests
Link to this section Summary
Functions
Asserts that a message sent from Membrane.Testing.Pipeline
matching pattern
was or is going to be received
within the timeout
period, specified in milliseconds
Link to this section Functions
Link to this macro
assert_receive_message(pattern, timeout \\ Application.fetch_env!(:ex_unit, :assert_receive_timeout), failure_message \\ nil) View Source (macro)
Asserts that a message sent from Membrane.Testing.Pipeline
matching pattern
was or is going to be received
within the timeout
period, specified in milliseconds.
The pattern
argument must be a match pattern. Flunks with failure_message
if a message matching pattern
is not received.
For example to wait for message indicating handle_prepared_to_playing
callback
was called:
assert_receive_message :handle_prepared_to_playing