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

fix flaky test in SnapshotServiceFactoryBeanIntegrationTest

Open CharlesZKQ opened this issue 4 years ago • 0 comments

In org.springframework.data.gemfire.snapshot.SnapshotServiceFactoryBeanIntegrationTest, the test handleArchiveFileLocation() is flaky due to the non-deterministic property of java.io.File.listFiles() (please refer document). I fixed it by sorting the array of File for both the expectedSnapshots and actualSnapshots, which eliminates the flakiness of this test.

CharlesZKQ avatar Nov 21 '21 23:11 CharlesZKQ