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

Comparing jsr166/src/test/tck/ForkJoinTaskTest.java (file contents):
Revision 1.6 by jsr166, Tue Dec 1 06:47:14 2009 UTC vs.
Revision 1.7 by jsr166, Tue Dec 1 23:01:44 2009 UTC

# Line 292 | Line 292 | public class ForkJoinTaskTest extends JS
292                      try {
293                          AsyncFib f = new AsyncFib(8);
294                          f.fork();
295 <                        f.get(5L, TimeUnit.SECONDS);
295 >                        f.get(LONG_DELAY_MS, TimeUnit.MILLISECONDS);
296                          threadAssertTrue(f.number == 21);
297                          threadAssertTrue(f.isDone());
298                      } catch (Exception ex) {
# Line 470 | Line 470 | public class ForkJoinTaskTest extends JS
470                      try {
471                          FailingAsyncFib f = new FailingAsyncFib(8);
472                          f.fork();
473 <                        f.get(5L, TimeUnit.SECONDS);
473 >                        f.get(LONG_DELAY_MS, TimeUnit.MILLISECONDS);
474                          shouldThrow();
475                      } catch (ExecutionException success) {
476                      } catch (Exception ex) {
# Line 605 | Line 605 | public class ForkJoinTaskTest extends JS
605                          AsyncFib f = new AsyncFib(8);
606                          f.cancel(true);
607                          f.fork();
608 <                        f.get(5L, TimeUnit.SECONDS);
608 >                        f.get(LONG_DELAY_MS, TimeUnit.MILLISECONDS);
609                          shouldThrow();
610                      } catch (CancellationException success) {
611                      } catch (Exception ex) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines