Skip to content

Commit

Permalink
Fixing test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
woody-apple committed Jul 2, 2022
1 parent e8ef89d commit c5704e5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/darwin/Framework/CHIP/MTRDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ extern NSString * const MTRArrayValueType;
maxInterval:(uint16_t)maxInterval
params:(nullable MTRSubscribeParams *)params
cacheContainer:(MTRAttributeCacheContainer * _Nullable)attributeCacheContainer
attributeReportHandler:(void (^)(NSArray * value))attributeReportHandler
eventReportHandler:(void (^)(NSArray * value))eventReportHandler
attributeReportHandler:(nullable void (^)(NSArray * value))attributeReportHandler
eventReportHandler:(nullable void (^)(NSArray * value))eventReportHandler
errorHandler:(void (^)(NSError * error))errorHandler
subscriptionEstablished:(nullable void (^)(void))subscriptionEstablishedHandler;

Expand Down
4 changes: 2 additions & 2 deletions src/darwin/Framework/CHIP/MTRDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ - (void)subscribeWithQueue:(dispatch_queue_t)queue
maxInterval:(uint16_t)maxInterval
params:(nullable MTRSubscribeParams *)params
cacheContainer:(MTRAttributeCacheContainer * _Nullable)attributeCacheContainer
attributeReportHandler:(void (^)(NSArray * value))attributeReportHandler
eventReportHandler:(void (^)(NSArray * value))eventReportHandler
attributeReportHandler:(nullable void (^)(NSArray * value))attributeReportHandler
eventReportHandler:(nullable void (^)(NSArray * value))eventReportHandler
errorHandler:(void (^)(NSError * error))errorHandler
subscriptionEstablished:(nullable void (^)(void))subscriptionEstablishedHandler
{
Expand Down
4 changes: 2 additions & 2 deletions src/darwin/Framework/CHIP/MTRDeviceOverXPC.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ - (void)subscribeWithQueue:(dispatch_queue_t)queue
maxInterval:(uint16_t)maxInterval
params:(nullable MTRSubscribeParams *)params
cacheContainer:(MTRAttributeCacheContainer * _Nullable)attributeCacheContainer
attributeReportHandler:(void (^)(NSArray * value))attributeReportHandler
eventReportHandler:(void (^)(NSArray * value))eventReportHandler
attributeReportHandler:(nullable void (^)(NSArray * value))attributeReportHandler
eventReportHandler:(nullable void (^)(NSArray * value))eventReportHandler
errorHandler:(void (^)(NSError * error))errorHandler
subscriptionEstablished:(nullable void (^)(void))subscriptionEstablishedHandler;
{
Expand Down
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIPTests/MTRXPCListenerSampleTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -1785,7 +1785,7 @@ - (void)test900_SubscribeAttributeCache
params:nil
cacheContainer:attributeCacheContainer
attributeReportHandler:^(NSArray * value) {
NSLog(@"Report for attribute cache: %@", error);
NSLog(@"Report for attribute cache: %@", value);
}
eventReportHandler:nil
errorHandler:^(NSError * error) {
Expand Down

0 comments on commit c5704e5

Please sign in to comment.