Skip to content

Commit 4793392

Browse files
bzbarsky-applepull[bot]
authored andcommitted
Make racy Darwin test less racy. (#27826)
We used a 1s min-interval and a 1s sleep to wait for reports. Those could race very easily. Better to use a sleep longer than the min-interval. Fixes #27507
1 parent f6a1e8d commit 4793392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/darwin/Framework/CHIPTests/MTRXPCListenerSampleTests.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,7 @@ - (void)test900_SubscribeClusterStateCache
16861686

16871687
MTRClusterStateCacheContainer * clusterStateCacheContainer = [[MTRClusterStateCacheContainer alloc] init];
16881688
NSLog(@"Setting up attribute cache subscription...");
1689-
__auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(1) maxInterval:@(60)];
1689+
__auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(0) maxInterval:@(60)];
16901690
[device subscribeWithQueue:queue
16911691
params:params
16921692
clusterStateCacheContainer:clusterStateCacheContainer

0 commit comments

Comments
 (0)