You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix thread race in test008_pairingAfterCancellation_DeviceAttestationVerification (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.
0 commit comments