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

cenkalti / backoff / 106 / 3
85%
v4: 89%

Build:
Build:
LAST BUILD BRANCH: v4.1.1
DEFAULT BRANCH: v4
Ran 21 Sep 2017 05:13PM UTC
Files 6
Run time 1s
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

21 Sep 2017 05:10PM UTC coverage: 83.978%. Remained the same
106.3

push

travis-ci

cenkalti
Fix data race when querying GetElapsedTime()

`ExponentialBackOff.GetElapsedTime()` reads start time which is reset
by `ExponentialBackOff.Reset()` which is called by `run()`, executed
in a goroutine. This creates a data race just by using:

```go
b := NewExponentialBackOff()
ticker := backoff.NewTicker(b)
b.GetElapsedTime()
```

This commit solves this by resetting the backoff timer outside the
goroutine. The ticker test has been updated for this particular data
race.

152 of 181 relevant lines covered (83.98%)

8.33 hits per line

Source Files on job 106.3
  • Tree
  • List 0
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 106
  • Travis Job 106.3
  • 61ba96c4 on github
  • Prev Job for on master (#104.3)
  • Next Job for on master (#108.3)
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

© 2026 Coveralls, Inc