From 84b67a4b6d26130b5910256279584893f1fe06ea Mon Sep 17 00:00:00 2001 From: Joshua Villasenor Date: Wed, 23 Mar 2022 09:20:10 -0700 Subject: [PATCH] Fix false potive when the test does not connect to a device. --- 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)