File tree 2 files changed +4
-4
lines changed
app/clusters/general-diagnostics-server
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ CHIP_ERROR GeneralDiagosticsAttrAccess::Read(const ConcreteReadAttributePath & a
221
221
uint32_t features = 0 ;
222
222
223
223
#if CHIP_CONFIG_MAX_PATHS_PER_INVOKE > 1
224
- features |= chip:: to_underlying (Clusters::GeneralDiagnostics::Feature::kDataModelTest );
224
+ features |= to_underlying (Clusters::GeneralDiagnostics::Feature::kDataModelTest );
225
225
#endif // CHIP_CONFIG_MAX_PATHS_PER_INVOKE > 1
226
226
227
227
return aEncoder.Encode (features);
@@ -455,7 +455,7 @@ bool emberAfGeneralDiagnosticsClusterPayloadTestRequestCallback(CommandHandler *
455
455
// Max allowed is 2048.
456
456
if (commandData.count > 2048 )
457
457
{
458
- commandObj->AddStatus (commandPath, Status::InvalidCommand );
458
+ commandObj->AddStatus (commandPath, Status::ConstraintError );
459
459
return true ;
460
460
}
461
461
Original file line number Diff line number Diff line change @@ -146,8 +146,8 @@ async def test_multiple_command_request_feature_present_if_needed(self):
146
146
if has_data_model_test_feature :
147
147
# Test count too large (above max 2048)
148
148
with asserts .assert_raises_regex (InteractionModelError ,
149
- "InvalidCommand " ,
150
- "PayloadTestRequest with request too large (> 2048) must return InvalidCommand " ):
149
+ "ConstraintError " ,
150
+ "PayloadTestRequest with request too large (> 2048) must return ConstraintError " ):
151
151
await dev_ctrl .SendCommand (
152
152
self .dut_node_id ,
153
153
endpoint = 0 ,
You can’t perform that action at this time.
0 commit comments