diff --git a/src/test/java/org/springframework/data/gemfire/config/support/DefinedIndexesIntegrationTests.java b/src/test/java/org/springframework/data/gemfire/config/support/DefinedIndexesIntegrationTests.java index 9a00dbc3b..b14dd2557 100644 --- a/src/test/java/org/springframework/data/gemfire/config/support/DefinedIndexesIntegrationTests.java +++ b/src/test/java/org/springframework/data/gemfire/config/support/DefinedIndexesIntegrationTests.java @@ -114,7 +114,8 @@ public void indexesCreated() { QueryService queryService = gemfireCache.getQueryService(); List expectedDefinedIndexNames = Arrays.asList(id.getName(), birthDate.getName(), name.getName()); - + expectedDefinedIndexNames.sort((a, b) -> (a.compareTo(b))); + definedIndexNames.sort((a, b) -> (a.compareTo(b))); assertThat(definedIndexNames).isEqualTo(expectedDefinedIndexNames); assertThat(id).isEqualTo(queryService.getIndex(people, id.getName())); assertThat(birthDate).isEqualTo(queryService.getIndex(people, birthDate.getName()));