(t *testing.T, schema string)
| 174 | } |
| 175 | |
| 176 | func newTestConfig(t *testing.T, schema string) *Config { |
| 177 | t.Helper() |
| 178 | |
| 179 | workers := NewWorkers() |
| 180 | AddWorker(workers, &noOpWorker{}) |
| 181 | |
| 182 | return &Config{ |
| 183 | FetchCooldown: 20 * time.Millisecond, |
| 184 | FetchPollInterval: 50 * time.Millisecond, |
| 185 | Logger: riversharedtest.Logger(t), |
| 186 | MaxAttempts: MaxAttemptsDefault, |
| 187 | Queues: map[string]QueueConfig{QueueDefault: {MaxWorkers: 50}}, |
| 188 | Schema: schema, |
| 189 | Test: TestConfig{ |
| 190 | Time: &riversharedtest.TimeStub{}, |
| 191 | }, |
| 192 | TestOnly: true, // disables staggered start in maintenance services |
| 193 | Workers: workers, |
| 194 | schedulerInterval: riverinternaltest.SchedulerShortInterval, |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | func newTestClient(t *testing.T, dbPool *pgxpool.Pool, config *Config) *Client[pgx.Tx] { |
| 199 | t.Helper() |
no test coverage detected
searching dependent graphs…