mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Nicolas Capponi
18.18.2015 52205a7c127159200bf3b6bbf33fa0f84cac24f2
Increase global waiting time in test to prevent test failure in slow environment

ChangelogBackendTestCase: global waiting time when searching
changelog is increased from 3s to 5s. Wait is done in a loop so it
does not impact fast test environment, but decrease probability of
failure in a slow environment.
1 files modified
2 ■■■ changed files
opendj-server-legacy/src/test/java/org/opends/server/backends/ChangelogBackendTestCase.java 2 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/backends/ChangelogBackendTestCase.java
@@ -1109,7 +1109,7 @@
      searchOp = connection.processSearch(request);
      count++;
    }
    while (count < 300 && searchOp.getSearchEntries().size() != expectedNbEntries);
    while (count < 500 && searchOp.getSearchEntries().size() != expectedNbEntries);
    final List<SearchResultEntry> entries = searchOp.getSearchEntries();
    assertThat(entries).hasSize(expectedNbEntries);