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

dgraph-io / badger / 3675
70%
main: 61%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions-eb8e6b6abe
DEFAULT BRANCH: main
Ran 07 Feb 2020 12:06PM UTC
Jobs 4
Files 53
Run time 25min
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.695%. First build
3675

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

6927 of 9939 relevant lines covered (69.7%)

271998.16 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3675.1 07 Feb 2020 12:06PM UTC 0
69.49
Travis Job 3675.1
2 3675.2 07 Feb 2020 12:18PM UTC 0
69.6
Travis Job 3675.2
3 3675.3 07 Feb 2020 12:30PM UTC 0
69.5
Travis Job 3675.3
4 3675.4 07 Feb 2020 12:32PM UTC 0
69.51
Travis Job 3675.4
Source Files on build 3675
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3675
  • c51748ef on github
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