Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable the tests that involve NIO.2
WatchService
on old JRE (#4903)
Motivation: At least on macOS 13.4 (and probably other OSes), `WatchService` seems not to notify the file changes quickly enough. As a result, we see the following tests fail: - `FileWatcherRegistryTest.runnableWithExceptionContinuesRun` - `PropertiesEndpointGroupTest.endpointChangePropagatesToListeners` - `PropertiesEndpointGroupTest.propertiesFileRestart` - `PropertiesEndpointGroupTest.propertiesFileUpdatesCorrectly` Modifications: - Migrated `FileWatcherRegistryTest` and `PropertiesEndpointGroupTest` from JUnit 4 to 5 - Added `@EnabledForJreRange` annotation on the problematic tests Result: - Build is more stable on the environment where `WatchService` is not very responsive. - Fixes #3474 and #3075
- Loading branch information
Showing
2 changed files
with
109 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.