< prev index next >

test/jdk/java/lang/Thread/virtual/stress/Skynet.java

Print this page
@@ -67,11 +67,11 @@
  
          long sum = chan.receive();
          long end = System.currentTimeMillis();
          System.out.format("Result: %d in %s ms%n", sum, (end-start));
          if (sum != expected)
-             throw new AssertionError("unexpected result!");
+             throw new RuntimeException("Expected " + expected);
      }
  
      static void skynet(Channel<Long> result, int num, int size, int div) {
          if (size == 1) {
              result.send((long)num);
< prev index next >