ci(tutorials): add smoke test for code (#85)

This commit is contained in:
vladopajic
2026-07-23 17:29:14 +00:00
committed by GitHub
parent 8fbe82c38d
commit cfbe14af07
10 changed files with 216 additions and 92 deletions
+8 -2
View File
@@ -102,7 +102,13 @@ int main()
}
/// ## Step 3: Get Node A's address and connect Node B
auto infoA = nodeA.peerInfo().value;
auto infoARes = nodeA.peerInfo();
if (!infoARes.success) {
fprintf(stderr, "Failed to get Node A info: %s\n",
infoARes.error.c_str());
return 1;
}
auto infoA = infoARes.value;
std::string peerIdA = infoA["peerId"].get<std::string>();
std::vector<std::string> addrsA;
for (const auto& a : infoA["addrs"])
@@ -225,4 +231,4 @@ int main()
///
/// ```bash
/// ./build/tutorial/tutorial_4_custom_protocol
/// ```
/// ```