Skip to content

Commit

Permalink
fixing flacky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ml054 committed Oct 16, 2023
1 parent 0842927 commit d531278
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 d531278

Please sign in to comment.