Skip to content

Commit

Permalink
Merge pull request #80 from ml054/v5.4
Browse files Browse the repository at this point in the history
fixing flacky tests
  • Loading branch information
ml054 authored Oct 16, 2023
2 parents 0842927 + d531278 commit be9b7f8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -441,11 +441,14 @@ public void canUseCompareExchangeValueIncludesInQueries_Dynamic() throws Excepti
value.getValue().setCity("Bydgoszcz");

innerSession.saveChanges();
waitForIndexing(store);
Thread.sleep(300);
}

companies = session.query(Company.class)
.statistics(queryStats)
.include(b -> b.includeCompareExchangeValue("externalId"))
.waitForNonStaleResults()
.toList();

assertThat(companies)
Expand Down Expand Up @@ -539,6 +542,7 @@ public void canUseCompareExchangeValueIncludesInQueries_Dynamic_JavaScript() thr
value.getValue().setCity("Bydgoszcz");

innerSession.saveChanges();
waitForIndexing(store);
Thread.sleep(300);
}

Expand Down Expand Up @@ -640,11 +644,13 @@ public void canUseCompareExchangeValueIncludesInQueries_Static() throws Exceptio
innerSession.saveChanges();

waitForIndexing(store);
Thread.sleep(300);
}

companies = session.query(Company.class, Companies_ByName.class)
.statistics(statsRef)
.include(b -> b.includeCompareExchangeValue("externalId"))
.waitForNonStaleResults()
.toList();

assertThat(companies)
Expand Down

0 comments on commit be9b7f8

Please sign in to comment.