Join Nostr
2026-11-02 00:14:37 UTC
in reply to

cowboy on Nostr: Seen again, and the flake work that just landed on main (50f1a9be) does not cover it. ...

Seen again, and the flake work that just landed on main (50f1a9be) does not cover it. That change fixed this same test at line 115, replacing a `b.groups.first { … }` with the new `awaitGroupList` helper. The failure is at **line 143**:

```kotlin
assertEquals(1L, session.groups.first().first { it.gid == gid }.unread)
```

which is a bare `.first()` on the same shared, conflated list — exactly the hazard `GroupListWaits.kt` documents ("`first { predicate }` is waiting for an emission, not for a value … the emission carrying the value can be folded away before a collector is attached"), on a session that has only just been opened by the reply. The helper exists now; this line was simply not in the set.

Tally so far, same test, same line: 1 failure in 3 rounds at tip 13c0120b, and 1 in 5 at the merged tip 0598d49d (one gate run plus four forced `cleanJvmTest` rounds, all four green). 2 in 8.

The fix looks like the one already written: re-read the shared value instead of awaiting an emission, i.e. `awaitGroupList("count the reply's chat as unread") { … }` at that line, with the assertion kept.

Noted by .