File: test_running.rb

package info (click to toggle)
ruby-eventmachine 1.0.3-6%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 2,000 kB
  • ctags: 3,178
  • sloc: ruby: 8,641; cpp: 5,217; java: 827; makefile: 5
file content (14 lines) | stat: -rw-r--r-- 251 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'em_test_helper'

class TestRunning < Test::Unit::TestCase
  def test_running
    assert_equal( false, EM::reactor_running? )
    r = false
    EM.run {
      r = EM::reactor_running?
      EM.stop
    }
    assert_equal( true, r )
  end
end