mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-21 03:27:34 +08:00
Changed RaftCore API; giving up Leader status if the leader cannot write its log
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user