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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists