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

go-pkgz / ctrl
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.2.1
DEFAULT BRANCH: master
Repo Added 25 Feb 2025 05:51AM UTC
Files 4
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

LAST BUILD ON BRANCH fix/http-shutdown-completion
branch: fix/http-shutdown-completion
CHANGE BRANCH
x
Reset
  • fix/http-shutdown-completion
  • fix/time-dependent-tests
  • master
  • refs/tags/v0.1.0
  • refs/tags/v0.2.0
  • refs/tags/v0.2.1
  • update/testify-and-docs

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

Relevant lines Covered
Build:
Build:
197 RELEVANT LINES 187 COVERED LINES
5.43 HITS PER LINE
Source Files on fix/http-shutdown-completion
  • Tree
  • List 4
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
32204739027 fix/http-shutdown-completion 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 shutdow... Pull #3 19 Aug 2026 01:24AM UTC paskal github
94.92
See All Builds (14)
  • Repo on GitHub
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