• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cameri / nostream / 41317034116
78%
main: 78%

Build:
Build:
LAST BUILD BRANCH: factory/022-settings-ceiling
DEFAULT BRANCH: main
Ran 01 Nov 2026 02:39PM UTC
Jobs 2
Files 267
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Nov 2026 02:36PM UTC coverage: 73.979% (+0.006%) from 73.973%
41317034116

push

github

web-flow
test(relay): signal invite mint await instead of yield polling (#991) (#1023)

Contributed by @avantikonde, who wrote this fix and reported it on #991.
The commit is cherry-picked with `-x` from theirs, so authorship is
preserved rather than reassigned:

- their commit:
https://github.com/avantikonde/nostream/commit/a504b6942
- their branch:
https://github.com/avantikonde/nostream/tree/test/close-during-mint-signal

## What it changes

`a_close_during_the_invite_mint_leaves_the_event_but_not_the_read`
waited for the invite mint with a 100-iteration `yield_now()` loop. On a
loaded runner the loop can be exhausted before the mint task runs, and
the test then fails with a message that accuses the mint.
`InMemoryInviteCodeRepository` now carries a `tokio::sync::Notify` that
fires when a `create` call starts, including one a gate is holding, and
the test awaits it instead. `Notify` stores a permit when nothing is
waiting, so a create that starts before the await still satisfies it.

The two comment blocks explain why the test authenticates before
subscribing (the mint sits behind the NIP-42 identity check) and why a
wire test cannot assert this after #978, where `CLOSE` runs as a
connection-loop prefix.

Test-only: no production code path changes.

## Verification

Built and run at the contributed commit on top of the current
`rewrite/main` tip:

```
cargo test -p nostream-relay --test handlers a_close_during_the_invite_mint
test a_close_during_the_invite_mint_leaves_the_event_but_not_the_read ... ok
test result: ok. 1 passed; 0 failed; 51 filtered out
```

Closes #991.

3588 of 5362 branches covered (66.92%)

Branch coverage included in aggregate %.

7992 of 10291 relevant lines covered (77.66%)

867.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Integration - 41317034116.1 01 Nov 2026 02:39PM UTC 267
32.54
GitHub Action Run
2 Unit - 41317034116.2 01 Nov 2026 02:40PM UTC 267
70.9
GitHub Action Run
Source Files on build 41317034116
  • Tree
  • List 267
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #41317034116
  • 48f1e014 on github
  • Prev Build on rewrite/main (#41202358734)
  • Next Build on rewrite/main (#41332816237)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc