Skip to content

Commit

Permalink
tests: Fix run
Browse files Browse the repository at this point in the history
- When packet size mismatches, return value was changed to INVALID_ARGUMENT
  • Loading branch information
Royna2544 committed Dec 15, 2024
1 parent 8c89542 commit 6b04015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/SocketDataHandlerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ TEST_F(SocketDataHandlerTest, TestCmdWriteMsgToChatIdINVALID) {
sendAndVerifyHeader<TgBotSocket::callback::GenericAck,
TgBotSocket::Command::CMD_GENERIC_ACK>(pkt,
&callbackData);
isGenericAck_Error<TgBotSocket::callback::AckType::ERROR_COMMAND_IGNORED>(
isGenericAck_Error<TgBotSocket::callback::AckType::ERROR_INVALID_ARGUMENT>(
callbackData);
// Done
verifyAndClear();
Expand Down

0 comments on commit 6b04015

Please sign in to comment.