Commit 2bf6c51
committed
stabilize client reindexer test
A reindexer test was asserting the wrong contract for
`Reindexer.TestSignals.Reindexed`. The test waited twice on the signal
as though it fired once per index or once per startup cycle, but the
reindexer sends it once after a run has finished processing all
configured indexes.
In the failing run, the client logged a complete reindex pass, including
`Initiated reindex` for every default index, and then the test timed out
waiting for another signal that would never arrive:
https://github.com/riverqueue/river/actions/runs/24406465152
Configure the client with a single reindex target and wait for one
`Reindexed` signal. That keeps this test focused on what it actually
owns, which is proving that the client wires up the reindexer and lets a
run complete through the full stack.
The more detailed scheduling and multi-index behavior stay covered by
the dedicated reindexer tests, so this client-level assertion no longer
depends on the size of the default index list or on how long a full
reindex pass happens to take on CI.1 parent 5f19fc7 commit 2bf6c51
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5559 | 5559 | | |
5560 | 5560 | | |
5561 | 5561 | | |
| 5562 | + | |
5562 | 5563 | | |
5563 | 5564 | | |
5564 | 5565 | | |
5565 | 5566 | | |
5566 | 5567 | | |
5567 | 5568 | | |
5568 | 5569 | | |
5569 | | - | |
5570 | | - | |
| 5570 | + | |
| 5571 | + | |
5571 | 5572 | | |
5572 | 5573 | | |
5573 | 5574 | | |
| |||
0 commit comments