(ctx context.Context, t *testing.T, config *Config)
| 217 | } |
| 218 | |
| 219 | func runNewTestClient(ctx context.Context, t *testing.T, config *Config) *Client[pgx.Tx] { |
| 220 | t.Helper() |
| 221 | |
| 222 | var ( |
| 223 | dbPool = riversharedtest.DBPool(ctx, t) |
| 224 | driver = riverpgxv5.New(dbPool) |
| 225 | schema = riverdbtest.TestSchema(ctx, t, driver, nil) |
| 226 | ) |
| 227 | config.Schema = schema |
| 228 | |
| 229 | client, err := NewClient(driver, config) |
| 230 | require.NoError(t, err) |
| 231 | |
| 232 | startClient(ctx, t, client) |
| 233 | |
| 234 | return client |
| 235 | } |
| 236 | |
| 237 | func subscribe[TTx any](t *testing.T, client *Client[TTx]) <-chan *Event { |
| 238 | t.Helper() |
no test coverage detected
searching dependent graphs…