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

go-pkgz / ctrl / 32204739027
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.2.1
DEFAULT BRANCH: master
Ran 19 Aug 2026 01:24AM UTC
Jobs 1
Files 4
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

19 Aug 2026 01:22AM UTC coverage: 94.924% (-2.7%) from 97.59%
32204739027

Pull #3

github

paskal
Fix HTTP server helper reporting success before shutdown finished

Previously, RunHTTPServerWithContext published the serve result as soon as
startFn returned, and http.Server.Shutdown makes Serve return ErrServerClosed
at the start of the shutdown rather than at its end. Callers were therefore
told the server had exited while requests were still draining, and any
shutdown error, including a timeout, only reached the log.

After this change a single coordinator owns the channel: on cancellation it
awaits Shutdown, collects the serve result and only then publishes the outcome,
joining the two errors when both are present. A server that stopped on its own
is reported immediately and is not shut down, so a failed start can be retried
on it; that also holds when the cancellation lands at the same moment. A
shutdown that times out publishes the timeout without waiting on startFn on top
of the deadline it already missed, at the cost of not reporting a serving error
that surfaces afterwards.

The signature and the defaults are unchanged.
Pull Request #3: Fix HTTP server helper reporting success before shutdown finished

40 of 48 new or added lines in 1 file covered. (83.33%)

187 of 197 relevant lines covered (94.92%)

5.43 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
88.24
-4.36% http_shutdown.go
Jobs
ID Job ID Ran Files Coverage
1 32204739027.1 19 Aug 2026 01:24AM UTC 4
94.92
GitHub Action Run
Source Files on build 32204739027
  • Tree
  • List 4
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #3
  • PR Base - master (#16870325261)
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