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

yarpc / yarpc-go / 2528 / 3
90%
master: %

Build:
Build:
LAST BUILD BRANCH: nooptrace
DEFAULT BRANCH: master
Ran 21 Nov 2016 10:13PM UTC
Files 110
Run time 6s
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 Nov 2016 10:07PM UTC coverage: 89.556% (-0.003%) from 89.559%
TYPE=test

push

travis-ci

web-flow
[PeerList][Part 11] Differentiating between Available/Unavailable Peers in RoundRobin (#449)

Summary: In order to have a more powerful PeerList in the round robin,
we need to be able to distinguish between a Peer that cannot accept
requests and one that can. This PR adds a distinction in the RoundRobin
PeerList that will only return Available Peers from the ChoosePeer
method.

In the process of doing this, I realized it would be a bad idea to trust
the Peer we pass in the NotifyStatusChanged function, so I changed it
from a Peer to a PeerIdentifier so that the lists need to look up their
own object so we don't get an issue of duplicate peers getting passed
around with different state.

Test Plan: I've upgraded the PeerListAction tests to have a
NotifyStatusChangeAction which will update a Peer's Status and run the
NotifyStatusChange function on the PeerList with the provided Peer.
This required weaving a list of available MockPeers in the Apply
function.
Additionally, the gomock MockPeer was not very flexible with changing
the returned result from an Expectation, so I ended up creating a thin
mock of Peer instead.

5308 of 5927 relevant lines covered (89.56%)

0.95 hits per line

Source Files on job 2528.3 (TYPE=test)
  • Tree
  • List 0
  • Changed 4
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2528
  • Travis Job 2528.3
  • efe2cc5d on github
  • Prev Job for TYPE=test on peerList (#2525.4)
  • Next Job for TYPE=test on peerList (#2531.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