spring-data-gemfire icon indicating copy to clipboard operation
spring-data-gemfire copied to clipboard

fix flaky test in EnableSslConfigurationDefaultContextIntegrationTests

Open CharlesZKQ opened this issue 4 years ago • 0 comments

In org/springframework/data/gemfire/config/annotation/EnableSslConfigurationDefaultContextIntegrationTests.java, the test sslAnnotationBasedClientConfigurationIsCorrect() is flaky due to the non-deterministic property of HashSet() document, which is used when creating the object of ConfigurableApplicationContext. I fixed it by trying to compare two possible orders, if it satisfy either one, it will pass the test.

CharlesZKQ avatar Nov 21 '21 03:11 CharlesZKQ