Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix thread race in test008_pairingAfterCancellation_DeviceAttestation…
…Verification (project-chip#37191) The attestation delegate is called on some random framework-internal queue, so it setting the boolean could race with the test main body reading the boolean, which could cause TSan failures, as well as outright failures in some cases. Adding a sleep(5) into the delegate callback before setting the boolean made the test fail reliably. The fix is to just use an expectation to track the "has the delegate been called?" state, since that will handle synchronization for us.
- Loading branch information