Skip to content

Commit

Permalink
Convert CharSpan to C++ String for proper comparison. (#19476)
Browse files Browse the repository at this point in the history
  • Loading branch information
krypton36 authored Jun 10, 2022
1 parent de931b0 commit d1d5ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/tests/suites/commands/log/LogCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ CHIP_ERROR LogCommands::UserPrompt(const char * identity,
{
std::string line;
std::getline(std::cin, line);
if (line != value.expectedValue.Value().data())
if (line != std::string(value.expectedValue.Value().data(), value.expectedValue.Value().size()))
{
return ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT);
}
Expand Down

0 comments on commit d1d5ca8

Please sign in to comment.