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
PropertiesEndpointGroupTest > endpointChangePropagatesToListeners FAILED
org.awaitility.core.ConditionTimeoutException: Assertion condition defined as a lambda expression in com.linecorp.armeria.client.endpoint.PropertiesEndpointGroupTest that uses com.linecorp.armeria.client.endpoint.EndpointGroup
Expected size:<1> but was:<2> in:
<[Endpoint{127.0.0.1:8080, weight=1000}, Endpoint{127.0.0.1:8081, weight=1000}]> within 1 minutes.
at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:165)
at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:119)
at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:31)
at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:895)
at org.awaitility.core.ConditionFactory.untilAsserted(ConditionFactory.java:679)
at com.linecorp.armeria.client.endpoint.PropertiesEndpointGroupTest.endpointChangePropagatesToListeners(PropertiesEndpointGroupTest.java:275)
Caused by:
java.lang.AssertionError:
Expected size:<1> but was:<2> in:
<[Endpoint{127.0.0.1:8080, weight=1000}, Endpoint{127.0.0.1:8081, weight=1000}]>
at com.linecorp.armeria.client.endpoint.PropertiesEndpointGroupTest.lambda$endpointChangePropagatesToListeners$7(PropertiesEndpointGroupTest.java:275)
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: