Loading... (original) (raw)
Daniel Fuchs reports that with the changes for
then this test now fails intermittently on Mac. This was not observed prior to pushing the changes, also does not duplicate in JPRT or TL nightly testing.
The issue is that listener.close causes the listener to be closed asynchronously and its completion handler is setting failed to true for that case. This creates a race as the main thread may or may not see the new value of "failure". Easy fix.