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

go-pkgz / ctrl
98%
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/time-dependent-tests
branch: fix/time-dependent-tests
CHANGE BRANCH
x
Reset
  • fix/time-dependent-tests
  • fix/http-shutdown-completion
  • master
  • refs/tags/v0.1.0
  • refs/tags/v0.2.0
  • refs/tags/v0.2.1
  • update/testify-and-docs

19 Aug 2026 01:19AM UTC coverage: 97.59%. Remained the same
32204775392

Pull #5

github

paskal
Replace timing-based waits in tests with synchronisation

Previously, the shutdown tests slept for a fixed period and then asserted that
the injected exit function had been called, which fails on a loaded machine
whenever the scheduler runs the timer later than the sleep. The injected exit
now reports through a channel, so each test waits exactly as long as it needs
to and fails on a deadline instead.

The second-signal case ran with a 500ms shutdown timeout while asserting on an
exit that the second signal was meant to cause, so the timeout could produce
that exit on its own; its timeout is now long enough that only the signal can.
The concurrent-signals case keeps a short timeout on purpose, as os/signal
drops a send to a full channel and a burst may therefore be delivered once, but
it now runs on a signal of its own and joins its senders, so nothing it sends
can reach a later case.

The timeout accuracy case measured from before the signal that starts the timer
and asserted a 150ms window around it. It now measures from the shutdown
callback, runs on its own signal, keeps the meaningful bound that the forced
exit never happens early, and leaves the upper one loose enough to survive a
delayed timer.

The HTTP tests no longer sleep before the first request, as the listener is
created before the server starts and already accepts connections; their
requests carry a client timeout, so a stuck server fails the test instead of
hanging it.
Pull Request #5: Replace timing-based waits in tests with synchronisation

162 of 166 relevant lines covered (97.59%)

5.16 hits per line

Relevant lines Covered
Build:
Build:
166 RELEVANT LINES 162 COVERED LINES
5.16 HITS PER LINE
Source Files on fix/time-dependent-tests
  • 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
32204775392 fix/time-dependent-tests Replace timing-based waits in tests with synchronisation Previously, the shutdown tests slept for a fixed period and then asserted that the injected exit function had been called, which fails on a loaded machine whenever the scheduler runs the ti... Pull #5 19 Aug 2026 01:24AM UTC paskal github
97.59
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