@@ -1193,36 +1193,13 @@ void TestReadInteraction::TestSubscribeRoundtrip(nlTestSuite * apSuite, void * a
1193
1193
readPrepareParams3.mMinIntervalFloorSeconds = 2 ;
1194
1194
readPrepareParams3.mMaxIntervalCeilingSeconds = 5 ;
1195
1195
1196
- printf (" \n Send 4th subscribe request message to Node: %" PRIu64 " \n " , chip::kTestDeviceNodeId );
1196
+ printf (" \n Send 4th subscribe request message to Node: %" PRIu64 " , resource exhausted \n " , chip::kTestDeviceNodeId );
1197
1197
1198
1198
ReadClient readClient3;
1199
1199
readClient3.Init (&ctx.GetExchangeManager (), &delegate, ReadClient::InteractionType::Subscribe);
1200
1200
err = readClient3.SendSubscribeRequest (readPrepareParams3);
1201
1201
NL_TEST_ASSERT (apSuite, err == CHIP_NO_ERROR);
1202
1202
engine->GetReportingEngine ().Run ();
1203
- NL_TEST_ASSERT (apSuite, delegate.mGotReport );
1204
- NL_TEST_ASSERT (apSuite, delegate.mNumAttributeResponse == 1 );
1205
- NL_TEST_ASSERT (apSuite, !delegate.mReadError );
1206
-
1207
- delegate.mNumAttributeResponse = 0 ;
1208
- delegate.mGotReport = false ;
1209
- ReadPrepareParams readPrepareParams4 (ctx.GetSessionBobToAlice ());
1210
- chip::app::AttributePathParams attributePathParams4[1 ];
1211
- readPrepareParams4.mpAttributePathParamsList = attributePathParams4;
1212
- readPrepareParams4.mpAttributePathParamsList [0 ].mEndpointId = kTestEndpointId ;
1213
- readPrepareParams4.mpAttributePathParamsList [0 ].mClusterId = kTestClusterId ;
1214
- readPrepareParams4.mpAttributePathParamsList [0 ].mAttributeId = 1 ;
1215
- readPrepareParams4.mAttributePathParamsListSize = 1 ;
1216
- readPrepareParams4.mMinIntervalFloorSeconds = 2 ;
1217
- readPrepareParams4.mMaxIntervalCeilingSeconds = 5 ;
1218
-
1219
- printf (" \n Send 5th subscribe request message to Node: %" PRIu64 " , resource exhausted\n " , chip::kTestDeviceNodeId );
1220
-
1221
- ReadClient readClient4;
1222
- readClient4.Init (&ctx.GetExchangeManager (), &delegate, ReadClient::InteractionType::Subscribe);
1223
- err = readClient4.SendSubscribeRequest (readPrepareParams4);
1224
- NL_TEST_ASSERT (apSuite, err == CHIP_NO_ERROR);
1225
- engine->GetReportingEngine ().Run ();
1226
1203
NL_TEST_ASSERT (apSuite, !delegate.mGotReport );
1227
1204
NL_TEST_ASSERT (apSuite, delegate.mNumAttributeResponse == 0 );
1228
1205
NL_TEST_ASSERT (apSuite, delegate.mReadError );
0 commit comments