File tree 1 file changed +4
-0
lines changed
src/darwin/Framework/CHIPTests
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -544,13 +544,17 @@ - (void)testItemsConcurrently
544
544
545
545
[self waitForExpectations: @[ first3WorkItemsExecutedExpectation ] timeout: 2 ];
546
546
// the before-sleep counter should have reached 3 immediately as they all run concurrently.
547
+ os_unfair_lock_lock (&counterLock);
547
548
XCTAssertEqual (afterSleepCounter, 0 );
549
+ os_unfair_lock_unlock (&counterLock);
548
550
549
551
[self waitForExpectations: @[ lastWorkItemWaitedExpectation, first3WorkItemsSleptExpectation ] timeout: 2 ];
550
552
551
553
// see that all 3 first items ran and slept
554
+ os_unfair_lock_lock (&counterLock);
552
555
XCTAssertEqual (beforeSleepCounter, 3 );
553
556
XCTAssertEqual (afterSleepCounter, 3 );
557
+ os_unfair_lock_unlock (&counterLock);
554
558
}
555
559
556
560
@end
You can’t perform that action at this time.
0 commit comments