From 45f5ffc14c35a651f21e9f7bf761483f718d2da6 Mon Sep 17 00:00:00 2001 From: krypton36 Date: Thu, 24 Mar 2022 17:18:44 -0700 Subject: [PATCH] Fix false potive when the test does not connect to a device. (#16568) --- examples/chip-tool/commands/tests/TestCommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/chip-tool/commands/tests/TestCommand.cpp b/examples/chip-tool/commands/tests/TestCommand.cpp index 2f08fa6a89f61c..36cd8b785ac4f1 100644 --- a/examples/chip-tool/commands/tests/TestCommand.cpp +++ b/examples/chip-tool/commands/tests/TestCommand.cpp @@ -53,7 +53,7 @@ void TestCommand::OnDeviceConnectionFailureFn(void * context, PeerId peerId, CHI auto * command = static_cast(context); VerifyOrReturn(command != nullptr, ChipLogError(chipTool, "Test command context is null")); - LogErrorOnFailure(command->ContinueOnChipMainThread(CHIP_NO_ERROR)); + LogErrorOnFailure(command->ContinueOnChipMainThread(error)); } void TestCommand::Exit(std::string message)