Skip to content

Commit

Permalink
Update network test. Fix warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuscu committed Oct 11, 2024
1 parent e58d050 commit 7f3c02d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/network/tests/common/NetworkInterfaceTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ TEST(NetworkInterface, Setup) {

std::string chatId = "6640331275"; // TradeFlowGroup
std::string args;
std::string message = "NetworkInterface";
std::string message = "NetworkInterface tester app";
args += "chat_id=" + chatId;
args += "&text=" + message;
args += "&text=" + l::string::encode_html(message);
args += "&parse_mode=HTML";

networkInterface->SendRequest("Telegram", "TradeFlowBot1", args, 1, 2000, 5, nullptr);

Expand Down
2 changes: 1 addition & 1 deletion packages/serialization/source/common/TrivialData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace l::serialization {

std::unordered_map<uint32_t, std::string> map;

for (int i = 0; i < out.size() / 2; i++) {
for (size_t i = 0; i < out.size() / 2; i++) {
uint32_t key = l::string::string_id(out[i * 2]);
map[key] = out[i * 2 + 1];
}
Expand Down

0 comments on commit 7f3c02d

Please sign in to comment.