diff --git a/src/app/clusters/test-cluster-server/test-cluster-server.cpp b/src/app/clusters/test-cluster-server/test-cluster-server.cpp index fcc2be874174e8..8d23cd3075db54 100644 --- a/src/app/clusters/test-cluster-server/test-cluster-server.cpp +++ b/src/app/clusters/test-cluster-server/test-cluster-server.cpp @@ -789,7 +789,7 @@ bool emberAfUnitTestingClusterTestDifferentVendorMeiRequestCallback( { Events::TestDifferentVendorMeiEvent::Type event{ commandData.arg1 }; - if (CHIP_NO_ERROR != LogEvent(event, commandPath.mEndpointId, response.evenNumber)) + if (CHIP_NO_ERROR != LogEvent(event, commandPath.mEndpointId, response.eventNumber)) { commandObj->AddStatus(commandPath, Status::Failure); return true; @@ -846,28 +846,16 @@ bool emberAfUnitTestingClusterTestEmitTestEventRequestCallback( DataModel::List arg5; DataModel::List arg6; - { - Events::TestDifferentVendorMeiEvent::Type event{ commandData.arg1 }; - - if (CHIP_NO_ERROR != LogEvent(event, commandPath.mEndpointId, responseData.value)) - { - commandObj->AddStatus(commandPath, Status::Failure); - return true; - } - } + // TODO: Add code to pull arg4, arg5 and arg6 from the arguments of the command + Events::TestEvent::Type event{ commandData.arg1, commandData.arg2, commandData.arg3, arg4, arg5, arg6 }; + if (CHIP_NO_ERROR != LogEvent(event, commandPath.mEndpointId, responseData.value)) { - // TODO: Add code to pull arg4, arg5 and arg6 from the arguments of the command - Events::TestEvent::Type event{ commandData.arg1, commandData.arg2, commandData.arg3, arg4, arg5, arg6 }; - - EventNumber eventIdPlaceholder = 0; - if (CHIP_NO_ERROR != LogEvent(event, commandPath.mEndpointId, eventIdPlaceholder)) - { - commandObj->AddStatus(commandPath, Status::Failure); - return true; - } - commandObj->AddResponse(commandPath, responseData); + commandObj->AddStatus(commandPath, Status::Failure); + return true; } + + commandObj->AddResponse(commandPath, responseData); return true; }