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

romshark / datapages / 37234184750
44%

Build:
DEFAULT BRANCH: main
Ran 04 Oct 2026 08:59PM UTC
Jobs 11
Files 190
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

04 Oct 2026 08:57PM UTC coverage: 43.958% (+0.06%) from 43.902%
37234184750

push

github

romshark
fix: End natscore streams on NATS connection close

The natscore broker keeps a subscription channel open after the NATS
connection closes, which nats.go does once its reconnect attempts run
out: 60 attempts 2s apart by default.

    nc, _ := nats.Connect(url, nats.MaxReconnects(1))
    sub, _ := natscore.New(nc, natscore.Config{}).
        Subscribe(ctx, messaging.NoopMetrics{}, "chat.room")
    // Stop the NATS server. nats.go fails to reconnect once
    // and closes nc.
    for range sub.C() {} // never returns

Every open page keeps a stream that receives no more events,
without an error, until the user reloads it.

Close the channel once nats.go closes the subscriptions, after
delivering the messages it holds. The stream ends, the page reconnects,
and the server logs each reconnect that fails on the closed connection.
Require every messaging.Broker to close the channel of a subscription
that can receive no more messages.

21 of 23 new or added lines in 1 file covered. (91.3%)

69 existing lines in 4 files now uncovered.

16108 of 36644 relevant lines covered (43.96%)

580.58 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
91.3
4.64% modules/messaging/natscore/natscore.go

Coverage Regressions

Lines Coverage ∆ File
57
79.81
2.17% modules/sessions/natskv/natskv.go
6
91.3
4.64% modules/messaging/natscore/natscore.go
4
56.17
-0.19% example/file-upload/app/app_templ.go
2
0.0
0.0% modules/messaging/messaging.go
Jobs
ID Job ID Ran Files Coverage
1 fast-shim - 37234184750.1 04 Oct 2026 08:59PM UTC 4
0.0
GitHub Action Run
2 tailwindcss - 37234184750.2 04 Oct 2026 09:00PM UTC 6
0.0
GitHub Action Run
3 todolist - 37234184750.3 04 Oct 2026 09:00PM UTC 11
0.0
GitHub Action Run
4 offline-cache - 37234184750.4 04 Oct 2026 09:00PM UTC 19
18.65
GitHub Action Run
5 file-upload - 37234184750.5 04 Oct 2026 09:00PM UTC 18
47.19
GitHub Action Run
6 webcomponents - 37234184750.6 04 Oct 2026 08:59PM UTC 6
0.0
GitHub Action Run
7 sqlitesessions - 37234184750.7 04 Oct 2026 09:00PM UTC 9
10.92
GitHub Action Run
8 calculator - 37234184750.8 04 Oct 2026 09:01PM UTC 10
38.08
GitHub Action Run
9 root - 37234184750.9 04 Oct 2026 09:09PM UTC 77
77.98
GitHub Action Run
10 classifieds - 37234184750.10 04 Oct 2026 09:00PM UTC 18
3.17
GitHub Action Run
11 counter - 37234184750.11 04 Oct 2026 09:00PM UTC 12
0.0
GitHub Action Run
Source Files on build 37234184750
  • Tree
  • List 190
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #37234184750
  • 1bab557b on github
  • Prev Build on main (#37218728008)
  • Next Build on main (#37239565976)
  • Delete
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