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

ti-mo / conntrack / 14836725940
92%

Build:
DEFAULT BRANCH: master
Ran 05 May 2025 12:44PM UTC
Jobs 2
Files 10
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

05 May 2025 12:43PM UTC coverage: 91.552%. Remained the same
14836725940

push

github

ti-mo
Add to wait group prior to starting event worker

When calling Listen and Close in quick succession repeatedly, the
previous code would occasionally panic with:

sync: WaitGroup is reused before previous Wait has returned

From the Go doc on WaitGroup.Add:

Typically this means the calls to Add should execute before the
statement creating the goroutine or other event to be waited for.

By moving the call to Add just before starting the event worker
goroutine, this commit ensures calls to Wait will not panic under load.

1 of 1 new or added line in 1 file covered. (100.0%)

1333 of 1456 relevant lines covered (91.55%)

1862.47 hits per line

Jobs
ID Job ID Ran Files Coverage
1 14836725940.1 05 May 2025 12:44PM UTC 10
91.55
GitHub Action Run
2 14836725940.2 05 May 2025 12:44PM UTC 10
91.55
GitHub Action Run
Source Files on build 14836725940
  • Tree
  • List 10
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3a97e864 on github
  • Prev Build on master (#9128211932)
  • Next Build on master (#14837515998)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc