Skip to content

Commit

Permalink
why???
Browse files Browse the repository at this point in the history
  • Loading branch information
rainer-prosi committed Jan 16, 2025
1 parent 5b8e9ea commit 1d36f5c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/test/java/org/cip4/bambi/core/AbstractDeviceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,14 @@ public void testDoSynchMulti() throws Exception
assertTrue(device.doSynchronous(qee));
ThreadUtil.sleep(1);
}
for (int i = 0; i < 4234; i++)
for (int i = 0; i < 6234; i++)
{
if (queueProcessor.getQueue().numEntries(EnumQueueEntryStatus.Waiting) > 0)
{
ThreadUtil.sleep(123);
}
}
ThreadUtil.sleep(123);
assertNotEquals(0, queueProcessor.getQueue().numEntries(EnumQueueEntryStatus.Completed));
assertEquals(0, queueProcessor.getQueue().numEntries(EnumQueueEntryStatus.Waiting));
}
Expand All @@ -304,13 +305,14 @@ public void testDoSynchMulti4() throws Exception
assertTrue(device.doSynchronous(qee));
ThreadUtil.sleep(1);
}
for (int i = 0; i < 4234; i++)
for (int i = 0; i < 6234; i++)
{
if (queueProcessor.getQueue().numEntries(EnumQueueEntryStatus.Waiting) > 0)
{
ThreadUtil.sleep(123);
}
}
ThreadUtil.sleep(123);
assertNotEquals(0, queueProcessor.getQueue().numEntries(EnumQueueEntryStatus.Completed));
assertEquals(0, queueProcessor.getQueue().numEntries(EnumQueueEntryStatus.Waiting));
}
Expand All @@ -336,13 +338,14 @@ public void testDoAsynchMulti() throws Exception
assertTrue(device.doSynchronous(qee));
ThreadUtil.sleep(1);
}
for (int i = 0; i < 4234; i++)
for (int i = 0; i < 6234; i++)
{
if (queueProcessor.getQueue().numEntries(EnumQueueEntryStatus.Waiting) > 0)
{
ThreadUtil.sleep(123);
}
}
ThreadUtil.sleep(123);
assertNotEquals(0, queueProcessor.getQueue().numEntries(EnumQueueEntryStatus.Completed));
assertEquals(0, queueProcessor.getQueue().numEntries(EnumQueueEntryStatus.Waiting));
}
Expand Down

0 comments on commit 1d36f5c

Please sign in to comment.