Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tennessee-google committed Feb 5, 2024
1 parent 86528ab commit a2d9b97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ CHIP_ERROR GeneralDiagosticsAttrAccess::Read(const ConcreteReadAttributePath & a
uint32_t features = 0;

#if CHIP_CONFIG_MAX_PATHS_PER_INVOKE > 1
features |= chip::to_underlying(Clusters::GeneralDiagnostics::Feature::kDataModelTest);
features |= to_underlying(Clusters::GeneralDiagnostics::Feature::kDataModelTest);
#endif // CHIP_CONFIG_MAX_PATHS_PER_INVOKE > 1

return aEncoder.Encode(features);
Expand Down Expand Up @@ -455,7 +455,7 @@ bool emberAfGeneralDiagnosticsClusterPayloadTestRequestCallback(CommandHandler *
// Max allowed is 2048.
if (commandData.count > 2048)
{
commandObj->AddStatus(commandPath, Status::InvalidCommand);
commandObj->AddStatus(commandPath, Status::ConstraintError);
return true;
}

Expand Down
4 changes: 2 additions & 2 deletions src/python_testing/TC_TestEventTrigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ async def test_multiple_command_request_feature_present_if_needed(self):
if has_data_model_test_feature:
# Test count too large (above max 2048)
with asserts.assert_raises_regex(InteractionModelError,
"InvalidCommand",
"PayloadTestRequest with request too large (> 2048) must return InvalidCommand"):
"ConstraintError",
"PayloadTestRequest with request too large (> 2048) must return ConstraintError"):
await dev_ctrl.SendCommand(
self.dut_node_id,
endpoint=0,
Expand Down

0 comments on commit a2d9b97

Please sign in to comment.