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

go-pkgz / auth / 32999026580
87%

Build:
DEFAULT BRANCH: master
Ran 26 Aug 2026 06:20PM UTC
Jobs 1
Files 25
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

26 Aug 2026 06:18PM UTC coverage: 86.663% (-0.04%) from 86.703%
32999026580

push

github

umputun
fix: remove the data race and the order dependence in the telegram tests

setupHandler returned context.CancelFunc directly, so cleanup() returned while
Run was still looping and TestTelegram_TokenVerification's unlocked write to
requests.data raced Run reading it under the lock. cleanup now cancels and
waits on a done channel.

That wait would have deadlocked TestTelegramConfirmedRequest: its GetUpdates
gate was a WaitGroup ignoring ctx, and the defer releasing it is registered
before defer cleanup(), so LIFO ran the waiting cleanup first. The gate is a
channel selecting on ctx.Done() now.

TestTelegram_TokenVerification also left apiPollInterval and
expiredCleanupInterval short for the rest of the package, so a 10ms cleanup
ticker deleted TestTelegramUnconfirmedRequest's request before it checked for
expiry. Both sites restore them with t.Cleanup.

3301 of 3809 relevant lines covered (86.66%)

9.78 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32999026580.1 26 Aug 2026 06:20PM UTC 25
86.66
GitHub Action Run
Source Files on build 32999026580
  • Tree
  • List 25
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5f6d12c4 on github
  • Prev Build on master (#32997592455)
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