Skip to content

Commit

Permalink
Added Delay, Since this test fails intermittently..
Browse files Browse the repository at this point in the history
  • Loading branch information
NavidMitchell committed Dec 30, 2024
1 parent df9ade3 commit 36c9de4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public void testFindAll(){
}

@Test
public void testFindAllWithCursor(){
public void testFindAllWithCursor() throws InterruptedException{

EntityContext context1 = new DefaultEntityContext(new DummyParticipant("tenant1", "user1"));
EntityContext context2 = new DefaultEntityContext(new DummyParticipant("tenant2", "user2"));
Expand All @@ -314,6 +314,8 @@ public void testFindAllWithCursor(){
entitiesService.syncIndex(holder1.getStructure().getId(), context1).join();
entitiesService.syncIndex(holder2.getStructure().getId(), context2).join();

Thread.sleep(5000);

// TODO: verify all data items as well, not just sizes
Sort sort = Sort.by("firstName");
AtomicReference<String> cursorRef = new AtomicReference<>();
Expand Down

0 comments on commit 36c9de4

Please sign in to comment.