Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

PAN-2404 - Make PeerDiscovertAgentTest less flakey. #1262

Merged
merged 3 commits into from
Apr 11, 2019

Conversation

shemnon
Copy link
Contributor

@shemnon shemnon commented Apr 11, 2019

PR description

Because of deep issues sometimes we get duplicate Peers that differ
in small ways. Tweak the test to verify we get all of the peers
we are expecting and to be tolerant of quasi-duplicate peers.

Fixed Issue(s)

PAN-2404

Because of deep issues sometimes we get duplicate Peers that differ
in small ways.  Tweak the test to verify we get all of the peers
we are expecting and to be tolerant of quasi-duplicate peers.
@@ -73,7 +73,7 @@ public void neighborsPacketLimited() {

// Start another peer pointing to those 20 agents.
final MockPeerDiscoveryAgent agent = helper.startDiscoveryAgent(otherPeers);
assertThat(agent.getPeers()).hasSize(20);
assertThat(agent.getPeers()).contains(otherPeers.toArray(new DiscoveryPeer[20]));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to add a comment here related to this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@shemnon shemnon merged commit 11ed270 into PegaSysEng:master Apr 11, 2019
notlesh pushed a commit to notlesh/pantheon that referenced this pull request Apr 24, 2019
Because of deep issues sometimes we get duplicate Peers that differ
in small ways.  Tweak the test to verify we get all of the peers
we are expecting and to be tolerant of quasi-duplicate peers.
notlesh pushed a commit to notlesh/pantheon that referenced this pull request May 4, 2019
Because of deep issues sometimes we get duplicate Peers that differ
in small ways.  Tweak the test to verify we get all of the peers
we are expecting and to be tolerant of quasi-duplicate peers.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants