parent v0.7.0 Periodic.Test View Source
Helpers for testing a periodic job.
See the "Testing" section in Periodic
documentation for details.
Link to this section Summary
Functions
Waits for the given telemetry event.
Subscribes to telemetry events of the given scheduler.
Asserts that the given telemetry event won't be emitted.
Sends a tick signal to the given scheduler.
Link to this section Functions
Link to this macro
assert_periodic_event(telemetry_id, event, metadata \\ quote do _ end, measurements \\ quote do _ end)
View Source (macro)Waits for the given telemetry event.
Subscribes to telemetry events of the given scheduler.
Link to this macro
refute_periodic_event(telemetry_id, event, metadata \\ quote do _ end, measurements \\ quote do _ end)
View Source (macro)Asserts that the given telemetry event won't be emitted.
Sends a tick signal to the given scheduler.