diff --git a/src/test/java/net/ravendb/client/test/issues/RavenDB_14006Test.java b/src/test/java/net/ravendb/client/test/issues/RavenDB_14006Test.java index 9520173d..3d65e506 100644 --- a/src/test/java/net/ravendb/client/test/issues/RavenDB_14006Test.java +++ b/src/test/java/net/ravendb/client/test/issues/RavenDB_14006Test.java @@ -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" + @@ -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)