Repository navigation
Commit f3a29f3
test(links): cover the five-minute recheck of a left public channel that stays unreadable
e607882 keeps a lookup that still admits a left public channel in
`withheld`, so a mounted link rechecks it after five minutes. No test
covered that branch. Putting back the old predicate, which keeps the
channel out of `withheld` because its open metadata still answers
`found`, passed the relay and conversation suites. With that predicate no
recheck is ever scheduled, and the link stays unreadable until something
else asks for a lookup.
A fake-timer store test now leaves a public channel, mounts a link to it,
and answers the lookup with no admission. It checks that the link still
names the channel as `found` with `readable: false` and no `looking`, that
nothing is looked up before five minutes, and that the store's own
wake-up looks it up again at five minutes. When that lookup admits the
channel, the link is readable again. The test fails with the old
predicate and passes on the current code. No product change.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Matt Toohey <[email protected]>1 parent e1f123c commit f3a29f3
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
202 | 226 | | |
203 | 227 | | |
204 | 228 | | |
| |||
0 commit comments