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

nats-io / nats-server / 3433
91%
main: 83%

Build:
Build:
LAST BUILD BRANCH: fix_code_coverage
DEFAULT BRANCH: main
Ran 21 May 2019 02:54PM UTC
Jobs 1
Files 27
Run time 3s
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 May 2019 02:45PM UTC coverage: 90.875%. First build
3433

push

travis-ci

kozlovic
Better randomize solicited Gateway URL

We used to invoke getURLs() that would return an array constructed
out of a map, so it was assumed that the array would be automatically
randomized. As we know, map iteration is randomized, but not that
much for small arrays.
More over, once we got the array, we would go over this array until
we get a connection. The order in that array was then not changed.

Replaced this with getting a random index in the array we got. The
risk with this approach is that with small array it is possible
that we pick the same URL multiple times and if that url is not
reachable, it may delay the connection.
Alternative would be to shuffle the array in getURLs and keep the
original code in solicitGateway().

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>

14999 of 16505 relevant lines covered (90.88%)

78804.39 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3433.1 (GO111MODULE=off) 21 May 2019 02:54PM UTC 0
90.88
Travis Job 3433.1
Source Files on build 3433
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3433
  • d842182a on github
  • Next Build on randomize_gw_urls (#3435)
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