This is an automated email from the ASF dual-hosted git repository.

reta pushed a commit to branch 3.3.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit 9d830b00674753d06bbd02320742c69e2005da44
Author: reta <[email protected]>
AuthorDate: Tue Jan 5 22:39:35 2021 -0500

    CXF-8395: Fix 
org.apache.cxf.workqueue.AutomaticWorkQueueTest.testEnqueueImmediate
    
    (cherry picked from commit f4b77a454c6affe9ae42f6060382a2412ab4f0cc)
---
 core/src/test/java/org/apache/cxf/workqueue/AutomaticWorkQueueTest.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/core/src/test/java/org/apache/cxf/workqueue/AutomaticWorkQueueTest.java 
b/core/src/test/java/org/apache/cxf/workqueue/AutomaticWorkQueueTest.java
index c13698c..f40f42c 100644
--- a/core/src/test/java/org/apache/cxf/workqueue/AutomaticWorkQueueTest.java
+++ b/core/src/test/java/org/apache/cxf/workqueue/AutomaticWorkQueueTest.java
@@ -176,6 +176,8 @@ public class AutomaticWorkQueueTest {
                 workItems[i] = new BlockingWorkItem();
                 try {
                     workqueue.execute(workItems[i]);
+                    //wait some time to allow worker to be created and work to 
be assigned
+                    Thread.sleep(100L);
                 } catch (RejectedExecutionException ex) {
                     fail("failed on item[" + i + "] with: " + ex);
                 }

Reply via email to