Fix timing issue in PartitionedCandidateOnStartupElection*Test 81/56681/4
authorTom Pantelis <tompantelis@gmail.com>
Mon, 8 May 2017 16:49:51 +0000 (12:49 -0400)
committerRobert Varga <nite@hq.sk>
Wed, 10 May 2017 09:19:09 +0000 (09:19 +0000)
If the initial AppendEntries sent by the leader (member 1) to member 3
is delayed enough such that the behavior field in MemberActor is already
set by the test code, the AppendEntries message will be forwarded to the
Candidate behavior and yield incorrect results for the test. To prevent this,
we really shouldn't set and access the behavior field directly but instead
do so via messages to maintain actor encapsulation.

Change-Id: If497583ce648e62e3279e5abff19cb8702943c17
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>

No differences found