diff --git a/teavm-samples/teavm-samples-async/pom.xml b/teavm-samples/teavm-samples-async/pom.xml index 125597036..99a38de06 100644 --- a/teavm-samples/teavm-samples-async/pom.xml +++ b/teavm-samples/teavm-samples-async/pom.xml @@ -65,12 +65,10 @@ ${project.build.directory}/generated/js/teavm org.teavm.samples.async.AsyncProgram SEPARATE - false + true true - diff --git a/teavm-samples/teavm-samples-async/src/main/java/org/teavm/samples/async/AsyncProgram.java b/teavm-samples/teavm-samples-async/src/main/java/org/teavm/samples/async/AsyncProgram.java index e6888cc65..a7b116ab1 100644 --- a/teavm-samples/teavm-samples-async/src/main/java/org/teavm/samples/async/AsyncProgram.java +++ b/teavm-samples/teavm-samples-async/src/main/java/org/teavm/samples/async/AsyncProgram.java @@ -73,7 +73,7 @@ public final class AsyncProgram { private static void findPrimes() { report("Finding primes"); - boolean[] prime = new boolean[1000000]; + boolean[] prime = new boolean[1000]; prime[2] = true; prime[3] = true; nextPrime: for (int i = 5; i < prime.length; i += 2) { diff --git a/teavm-tests/src/test/java/org/teavm/classlib/java/lang/ObjectTest.java b/teavm-tests/src/test/java/org/teavm/classlib/java/lang/ObjectTest.java index 5bc565cd2..5aae01964 100644 --- a/teavm-tests/src/test/java/org/teavm/classlib/java/lang/ObjectTest.java +++ b/teavm-tests/src/test/java/org/teavm/classlib/java/lang/ObjectTest.java @@ -73,7 +73,7 @@ public class ObjectTest { long start = System.currentTimeMillis(); final Object lock = new Object(); synchronized (lock) { - lock.wait(100); + lock.wait(110); } long end = System.currentTimeMillis(); assertTrue(end - start > 100);