Antenna.ExUnit (antenna v0.5.1)

View Source

The helper module for ExUnit tests. It exports assert_event/2 and refute_event/2 functions to assert and refute events.

Summary

Functions

Asserts that an event is received within the specified timeout.

Functions

assert_event(id \\ nil, match, channels, event, timeout \\ 5000, fun)

(macro)

Asserts that an event is received within the specified timeout.

Example

assert_event(Antenna, {:foo, _}, :chan_1, _, fn -> provoke_foo(Fooer) end)