Fix for ONOS-5906 Asserting latch has reached zero and increasing wait time to avoid later assertion error.
Change-Id: I9625a38433fe5eeee074b2453cd2d96ded5d5717
diff --git a/core/store/primitives/src/test/java/org/onosproject/store/primitives/resources/impl/AtomixWorkQueueTest.java b/core/store/primitives/src/test/java/org/onosproject/store/primitives/resources/impl/AtomixWorkQueueTest.java
index 5335152..3675373 100644
--- a/core/store/primitives/src/test/java/org/onosproject/store/primitives/resources/impl/AtomixWorkQueueTest.java
+++ b/core/store/primitives/src/test/java/org/onosproject/store/primitives/resources/impl/AtomixWorkQueueTest.java
@@ -32,7 +32,6 @@
import org.junit.AfterClass;
import org.junit.BeforeClass;
-import org.junit.Ignore;
import org.junit.Test;
import org.onlab.util.Tools;
import org.onosproject.store.service.Task;
@@ -151,7 +150,6 @@
assertEquals(0, stats.totalCompleted());
}
- @Ignore("Disable due to ONOS-5906")
@Test
public void testAutomaticTaskProcessing() throws Throwable {
String queueName = UUID.randomUUID().toString();
@@ -167,7 +165,7 @@
byte[] item1 = DEFAULT_PAYLOAD;
queue2.addOne(item1).join();
- Uninterruptibles.awaitUninterruptibly(latch1, 500, TimeUnit.MILLISECONDS);
+ assertTrue(Uninterruptibles.awaitUninterruptibly(latch1, 5000, TimeUnit.MILLISECONDS));
queue1.stopProcessing();
byte[] item2 = DEFAULT_PAYLOAD;