spring-data-gemfire
spring-data-gemfire copied to clipboard
fix flaky test in SnapshotServiceFactoryBeanIntegrationTest
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.