Skip to content

Commit

Permalink
Update src/darwin/Framework/CHIP/MTRDevice.mm
Browse files Browse the repository at this point in the history
  • Loading branch information
woody-apple authored May 16, 2024
1 parent c92d8e5 commit adc2f3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/darwin/Framework/CHIP/MTRDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ - (BOOL)_deviceUsesThread
#ifdef DEBUG
id testDelegate = _weakDelegate.strongObject;
if (testDelegate) {
// Note: This is a hack to allow our unit tests to test the subscription pooling behavior we have implemented for thread, so we mock devices to be a thread device
if ([testDelegate respondsToSelector:@selector(unitTestPretendThreadEnabled:)]) {
if ([testDelegate unitTestPretendThreadEnabled:self]) {
return YES;
Expand Down

0 comments on commit adc2f3d

Please sign in to comment.