Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Fix bug in asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyk-91 committed Oct 30, 2019
1 parent a42e4e6 commit 330b47c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public void newClientCanBeCreated() {
PaxosLearner learner = paxosComponents.learner(CLIENT);
learner.learn(PAXOS_ROUND_ONE, PAXOS_VALUE);

assertThat(learner.getGreatestLearnedValue()).map(PaxosValue::getLeaderUUID).isEqualTo(PAXOS_UUID);
assertThat(learner.getGreatestLearnedValue()).map(PaxosValue::getData).isEqualTo(PAXOS_DATA);
assertThat(learner.getGreatestLearnedValue()).map(PaxosValue::getLeaderUUID).contains(PAXOS_UUID);
assertThat(learner.getGreatestLearnedValue()).map(PaxosValue::getData).contains(PAXOS_DATA);

PaxosAcceptor acceptor = paxosComponents.acceptor(CLIENT);
acceptor.accept(PAXOS_ROUND_TWO, PAXOS_PROPOSAL);
Expand Down

0 comments on commit 330b47c

Please sign in to comment.