@@ -1452,12 +1452,9 @@ - (void)doDataStoreMTRDeviceTestWithStorageDelegate:(id<MTRDeviceControllerStora
1452
1452
// datastore) the device has no estimate for subscription latency.
1453
1453
XCTAssertNil (device.estimatedSubscriptionLatency );
1454
1454
1455
- __auto_type * beforeSetDelegate = [NSDate now ];
1456
-
1457
1455
[device setDelegate: delegate queue: queue];
1458
1456
1459
1457
[self waitForExpectations: @[ subscriptionExpectation ] timeout: 60 ];
1460
- __auto_type * afterInitialSubscription = [NSDate now ];
1461
1458
1462
1459
if (!disableStorageBehaviorOptimization) {
1463
1460
[self waitForExpectations: @[ gotClusterDataPersisted ] timeout: 60 ];
@@ -1504,14 +1501,6 @@ - (void)doDataStoreMTRDeviceTestWithStorageDelegate:(id<MTRDeviceControllerStora
1504
1501
// some time.
1505
1502
XCTAssertGreaterThan (device.estimatedSubscriptionLatency .doubleValue , 0 );
1506
1503
1507
- // Check that this estimate is no larger than the measured latency observed
1508
- // above. Unfortunately, We measure our observed latency to report end, not
1509
- // to the immediately following internal subscription established
1510
- // notification, so in fact our measured value can end up shorter than the
1511
- // estimated latency the device has. Add some slop to handle that.
1512
- const NSTimeInterval timingSlopInSeconds = 0.5 ;
1513
- XCTAssertLessThanOrEqual (device.estimatedSubscriptionLatency .doubleValue , [afterInitialSubscription timeIntervalSinceDate: beforeSetDelegate] + timingSlopInSeconds);
1514
-
1515
1504
// Now set up new delegate for the new device and verify that once subscription reestablishes, the data version filter loaded from storage will work
1516
1505
__auto_type * newDelegate = [[MTRDeviceTestDelegate alloc ] init ];
1517
1506
0 commit comments