Add edge clock sync diagnostics
This commit is contained in:
1 parent
836af4b623
commit
6c99ae39a9
6 files changed
+274
-76
No files matched your search
@@ -146,6 +146,14 @@ TEST(ClockSyncConsensus, ConfiguredEightStillCannotAcceptAnEightVsEightSplit) {
|
||||
EXPECT_EQ(9, result.required_count);
|
||||
}
|
||||
|
||||
TEST(ClockSyncPathPolicy, NormalModeRequiresUniquePaths) {
|
||||
EXPECT_TRUE(mesh::clockSyncRequiresUniquePath(false));
|
||||
}
|
||||
|
||||
TEST(ClockSyncPathPolicy, EdgeModeAllowsOnePath) {
|
||||
EXPECT_FALSE(mesh::clockSyncRequiresUniquePath(true));
|
||||
}
|
||||
|
||||
static mesh::Packet* makeTrace(TraceTestMesh& node, uint32_t tag, uint32_t auth,
|
||||
const uint8_t* route, uint8_t route_len) {
|
||||
mesh::Packet* packet = node.createTrace(tag, auth, 0);
|
||||
|
||||
Reference in new issue
Block a user