Repository navigation
Commit 6a5fee6
authored
Fix flaky XREADGROUP BLOCK CLAIM tests (#16119)
**Summary**
Two `stream-cgroups.tcl` tests block with `CLAIM 1000` and expect XNACK
or XADD to wake the client before the entries become claimable by idle
time. If the command arrives about 1 s late (a slow runner, or a helper
that sleeps instead of polling), the idle claim wins and the test fails.
This is a test-only change.
**Changes**
Raise the CLAIM threshold in both tests
(`tests/unit/type/stream-cgroups.tcl`)
`BLOCK 5000 CLAIM 1000` is now `BLOCK 20000 CLAIM 10000`, so only XNACK
or XADD can wake the client. The XNACK test now also fails if XNACK
stops waking the client; before, the idle timer hid that.
Tighten the new-message test (`tests/unit/type/stream-cgroups.tcl`)
It now asserts that the returned entry is `2-0`. The `# comment` after
`after 100` is removed: Tcl treated it as arguments, so the sleep never
ran.1 parent 4188839 commit 6a5fee6
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3044 | 3044 | | |
3045 | 3045 | | |
3046 | 3046 | | |
3047 | | - | |
| 3047 | + | |
3048 | 3048 | | |
3049 | 3049 | | |
3050 | 3050 | | |
3051 | | - | |
| 3051 | + | |
3052 | 3052 | | |
3053 | 3053 | | |
3054 | 3054 | | |
3055 | 3055 | | |
3056 | 3056 | | |
3057 | 3057 | | |
3058 | 3058 | | |
| 3059 | + | |
3059 | 3060 | | |
3060 | 3061 | | |
3061 | 3062 | | |
| |||
4148 | 4149 | | |
4149 | 4150 | | |
4150 | 4151 | | |
4151 | | - | |
| 4152 | + | |
4152 | 4153 | | |
4153 | | - | |
| 4154 | + | |
4154 | 4155 | | |
4155 | 4156 | | |
4156 | 4157 | | |
| |||
0 commit comments