Skip to content

Commit

Permalink
fixing race
Browse files Browse the repository at this point in the history
  • Loading branch information
ml054 committed Oct 10, 2023
1 parent d4737cc commit 54c22a8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,7 @@ public void canUseCompareExchangeValueIncludesInQueries_Static_JavaScript() thro
innerSession.saveChanges();

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

companies = session.advanced().rawQuery(Company.class, "declare function incl(c) {\n" +
Expand All @@ -750,6 +751,7 @@ public void canUseCompareExchangeValueIncludesInQueries_Static_JavaScript() thro
"from index 'Companies/ByName' as c\n" +
"select incl(c)")
.statistics(statsRef)
.waitForNonStaleResults()
.toList();

assertThat(companies)
Expand Down

0 comments on commit 54c22a8

Please sign in to comment.