Expand description
Common test setup utilities for Awa integration tests.
Functionsยง
- clean_
queue - Delete all jobs, queue metadata, and admin caches for a specific queue.
- database_
url - Default database URL for test runs.
- database_
url_ with_ app_ name - Database URL with a custom application_name parameter appended.
- pool
- Create a connection pool.
- pool_
with_ url - Create a connection pool with a custom database URL.
- queue_
state_ counts - Query job state counts for a queue, returning a map of state -> count.
- setup
- Create a pool, run migrations, and return it.
- state_
count - Extract a count for a given state from a state-counts map.
- wait_
for_ counts - Poll queue state counts until a predicate is satisfied, or panic on timeout.