(t *testing.T)
| 8669 | } |
| 8670 | |
| 8671 | func TestReindexerIndexNamesDefault(t *testing.T) { |
| 8672 | t.Parallel() |
| 8673 | |
| 8674 | indexNames := ReindexerIndexNamesDefault() |
| 8675 | |
| 8676 | // Assert the exact list so index list changes require explicit test updates. |
| 8677 | require.Equal(t, []string{ |
| 8678 | "river_job_args_index", |
| 8679 | "river_job_kind", |
| 8680 | "river_job_metadata_index", |
| 8681 | "river_job_pkey", |
| 8682 | "river_job_prioritized_fetching_index", |
| 8683 | "river_job_state_and_finalized_at_index", |
| 8684 | "river_job_unique_idx", |
| 8685 | }, indexNames) |
| 8686 | |
| 8687 | indexNames[0] = "mutated" |
| 8688 | require.Equal(t, "river_job_args_index", ReindexerIndexNamesDefault()[0]) |
| 8689 | } |
| 8690 | |
| 8691 | type timeoutTestArgs struct { |
| 8692 | TimeoutValue time.Duration `json:"timeout_value"` |
nothing calls this directly
no test coverage detected
searching dependent graphs…