ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/CountedCompleterTest.java
(Generate patch)

Comparing jsr166/src/test/tck/CountedCompleterTest.java (file contents):
Revision 1.33 by jsr166, Mon May 29 19:15:02 2017 UTC vs.
Revision 1.35 by dl, Thu Oct 26 22:50:07 2017 UTC

# Line 111 | Line 111 | public class CountedCompleterTest extend
111          try {
112              assertNull(a.get());
113              assertNull(a.get(randomTimeout(), randomTimeUnit()));
114 <        } catch (Throwable fail) { threadUnexpectedException(fail); }
114 >        } catch (Exception fail) { threadUnexpectedException(fail); }
115      }
116  
117      void checkCancelled(CountedCompleter a) {
# Line 731 | Line 731 | public class CountedCompleterTest extend
731                  CCF f = new LCCF(8);
732                  assertSame(f, f.fork());
733                  helpQuiesce();
734 +                while (!f.isDone()) // wait out race
735 +                    ;
736                  assertEquals(21, f.number);
737                  assertEquals(0, getQueuedTaskCount());
738                  checkCompletedNormally(f);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines