test/test_backend.rb in polyphony-0.73.1 vs test/test_backend.rb in polyphony-0.74
- old
+ new
@@ -241,19 +241,17 @@
snooze
server&.close
end
def test_timer_loop
- skip unless IS_LINUX
-
- i = 0
+ counter = 0
f = spin do
- @backend.timer_loop(0.01) { i += 1 }
+ @backend.timer_loop(0.01) { counter += 1 }
end
@backend.sleep(0.05)
f.stop
f.await # TODO: check why this test sometimes segfaults if we don't a<wait fiber
- assert_in_range 4..6, i
+ assert_in_range 4..6, counter if IS_LINUX
end
class MyTimeoutException < Exception
end