Skip to content

Commit edfd973

Browse files
pre-commit-ci[bot]woody-apple
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 23892fe commit edfd973

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/darwin/Framework/CHIPTests/MTRPairingTests.m

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,7 @@ - (void)test024_CancelCommissioningForNodeIDClearsPostPASEWaitingState
14341434
// Tear the second op down (cancel by node ID) so it does not arm its own
14351435
// watchdog or hold the slot past the end of the test, then drain.
14361436
[sController cancelCommissioningForNodeID:@(sDeviceId) error:NULL];
1437-
dispatch_sync(callbackQueue, ^{});
1437+
dispatch_sync(callbackQueue, ^ {});
14381438
[secondInert fulfill];
14391439
[self waitForExpectations:@[ secondInert ] timeout:1.0];
14401440

@@ -1592,7 +1592,7 @@ - (void)test_WatchdogFires_WhenClientNeverAdvancesPastPASE
15921592
// _earlyFailCommissioning: -> _dispatchCommissioningError, which hops onto
15931593
// the delegate queue. Drain that queue so any synchronous-path failure has
15941594
// been recorded before we inspect it.
1595-
dispatch_sync(callbackQueue, ^{});
1595+
dispatch_sync(callbackQueue, ^ {});
15961596
NSError * secondEarlyError = secondDelegate.lastDeliveredError;
15971597

15981598
XCTAssertEqualObjects(slotAfterStart, secondCommissioning,
@@ -1606,7 +1606,7 @@ - (void)test_WatchdogFires_WhenClientNeverAdvancesPastPASE
16061606
// Fulfill the inert expectation explicitly (its outcome is not part of the
16071607
// contract) so it never dangles into XCTest's end-of-test wait.
16081608
[secondCommissioning stop];
1609-
dispatch_sync(callbackQueue, ^{});
1609+
dispatch_sync(callbackQueue, ^ {});
16101610
[secondInert fulfill];
16111611
[self waitForExpectations:@[ secondInert ] timeout:1.0];
16121612

@@ -1689,5 +1689,4 @@ - (void)test_WatchdogDoesNotFire_OnNormalFlow
16891689
[MTRCommissioningOperation setPostPASEWatchdogIntervalForTesting:0];
16901690
}
16911691

1692-
16931692
@end

0 commit comments

Comments
 (0)