Skip to content

Commit

Permalink
Add logs to test the multiple attribute report
Browse files Browse the repository at this point in the history
  • Loading branch information
nivi-apple committed May 1, 2024
1 parent bf87bcd commit 214244a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/darwin/Framework/CHIPTests/MTRDeviceTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -3454,8 +3454,9 @@ - (void)test033_TestMTRDeviceDeviceConfigurationChanged
XCTestExpectation * gotAttributeReportWithMultipleAttributesEndExpectation = [self expectationWithDescription:@"Attribute report with multiple attributes has ended"];
XCTestExpectation * deviceConfigurationChangedExpectationForAttributeReportWithMultipleAttributes = [self expectationWithDescription:@"Device configuration changed was receieved due to an attribute report with multiple attributes "];
delegate.onAttributeDataReceived = ^(NSArray<NSDictionary<NSString *, id> *> * attributeReport) {
NSLog(@"got subscription report %@", attributeReport);
attributeReportsReceived += attributeReport.count;
XCTAssertEqual(attributeReportsReceived, 3);
XCTAssert(attributeReportsReceived > 0);
[gotAttributeReportWithMultipleAttributesExpectation fulfill];
};

Expand Down

0 comments on commit 214244a

Please sign in to comment.