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

dgraph-io / badger / 3666
61%
main: 61%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions-eb8e6b6abe
DEFAULT BRANCH: main
Ran 05 Feb 2020 10:12AM UTC
Jobs 4
Files 53
Run time 15min
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 Feb 2020 10:00AM UTC coverage: 69.776% (+0.06%) from 69.715%
3666

push

travis-ci

web-flow
Fix flaky TestPageBufferReader2 test (#1210)

Fixes https://github.com/dgraph-io/badger/issues/1197

The `TestPageBufferReader2` test would fail often because of an
`off-by-1` issue. The problem can be reproduced by setting `randOffset`
to the biggest number that randInt31n may return statically like:

```
    //randOffset := int(rand.Int31n(int32(b.length)))
    randOffset := int(int32(b.length-1))
```

This makes the problem reliably reproducible as the offset is now
pointing at EOF.

Thus changing the line to this should hopefully solve the problem:
`randOffset := int(rand.Int31n(int32(b.length-1

6935 of 9939 relevant lines covered (69.78%)

272647.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3666.1 05 Feb 2020 10:12AM UTC 0
69.42
Travis Job 3666.1
2 3666.2 05 Feb 2020 10:13AM UTC 0
69.67
Travis Job 3666.2
3 3666.3 05 Feb 2020 10:24AM UTC 0
69.58
Travis Job 3666.3
4 3666.4 05 Feb 2020 10:27AM UTC 0
69.66
Travis Job 3666.4
Source Files on build 3666
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3666
  • c51748ef on github
  • Prev Build on master (#3663)
  • Next Build on master (#3691)
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