Documentation
¶
Overview ¶
Package testutils provides test helpers for asynqpg integration tests. This package is for testing only and should not be considered stable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupTestDatabase ¶
SetupTestDatabase creates a PostgreSQL test container and returns a connected *sqlx.DB.
Types ¶
type Task ¶
type Task struct {
ID int64 `db:"id"`
Type string `db:"type"`
IdempotencyToken *string `db:"idempotency_token"`
Payload []byte `db:"payload"`
Status string `db:"status"`
Messages pq.StringArray `db:"messages"`
BlockedTill time.Time `db:"blocked_till"`
AttemptsLeft int `db:"attempts_left"`
AttemptsElapsed int `db:"attempts_elapsed"`
}
Task is a simplified representation of an asynqpg task for test assertions.
Click to show internal directories.
Click to hide internal directories.