mbien opened a new pull request, #8455:
URL: https://github.com/apache/netbeans/pull/8455

   `testDisabledSmartQuotes` had a high failure rate.
   
   situation:
    - `OptionsUtils` listens to `Preferences` changes and caches values
    - The event thread of `Preferences` is not the swing EDT (even though it 
happens to have the same name), tests run on EDT
    - it is not guaranteed that a subsequent read in `OptionsUtils` reflects 
the prior write in the test case
   
   fix:
    - call `sync()` after write to `Preferences`
   
   Ran this 600x in a loop without failure, before this change only a few local 
runs were needed to hit the race condition.
   
   part of https://github.com/apache/netbeans/issues/8183


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to