Remove dependency on timing, so hopefully it shouldn't hang anymore.
@@ -9,13 +9,12 @@ class TestCondition extends utest.Test {
#if !neko
function test() {
final cond = new Condition();
- final thread = Thread.create(() -> {
- Sys.sleep(0.01);
+ cond.acquire();
+ Thread.create(() -> {
cond.acquire();
cond.signal();
cond.release();
});
- cond.acquire();
cond.wait();
utest.Assert.pass();