test/jdk/java/util/concurrent/tck/CountedCompleterTest.java
changeset 47728 0a65c8231efa
parent 47216 71c04702a3d5
child 51951 1239bfca87f8
--- a/test/jdk/java/util/concurrent/tck/CountedCompleterTest.java	Thu Nov 09 16:03:37 2017 -0800
+++ b/test/jdk/java/util/concurrent/tck/CountedCompleterTest.java	Thu Nov 09 16:07:21 2017 -0800
@@ -758,6 +758,8 @@
                 CCF f = new LCCF(8);
                 assertSame(f, f.fork());
                 helpQuiesce();
+                while (!f.isDone()) // wait out race
+                    ;
                 assertEquals(21, f.number);
                 assertEquals(0, getQueuedTaskCount());
                 checkCompletedNormally(f);