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

cenkalti / backoff / 106
85%
v4: 89%

Build:
Build:
LAST BUILD BRANCH: v4.1.1
DEFAULT BRANCH: v4
Ran 21 Sep 2017 05:12PM UTC
Jobs 3
Files 6
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

pending completion
106

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.

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

152 of 182 relevant lines covered (83.52%)

25.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 106.1 21 Sep 2017 05:12PM UTC 0
83.52
Travis Job 106.1
2 106.2 21 Sep 2017 05:12PM UTC 0
83.98
Travis Job 106.2
3 106.3 21 Sep 2017 05:13PM UTC 0
83.98
Travis Job 106.3
Source Files on build 106
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #106
  • 61ba96c4 on github
  • Prev Build on master (#104)
  • Next Build on master (#108)
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