Changed RaftCore API; giving up Leader status if the leader cannot write its log

This commit is contained in:
Pavel Kirienko
2015-05-10 23:43:08 +03:00
parent a6b0a256fb
commit 731d9f4574
3 changed files with 13 additions and 22 deletions
@@ -83,7 +83,7 @@ TEST(DynamicNodeIDServer, RaftCoreBasic)
Entry::FieldTypes::unique_id unique_id;
uavcan::fill_n(unique_id.begin(), 16, uint8_t(0xAA));
ASSERT_LE(0, raft_a->appendLog(unique_id, uavcan::NodeID(1)));
raft_a->appendLog(unique_id, uavcan::NodeID(1));
nodes.spinBoth(uavcan::MonotonicDuration::fromMSec(2000));