tests/test_connection_count.rb in eventmachine-eventmachine-0.12.7 vs tests/test_connection_count.rb in eventmachine-eventmachine-0.12.8
- old
+ new
@@ -27,13 +27,13 @@
end
end
def test_with_some_connections
EM.run {
- EM.start_server("127.0.0.1", 9999, Server)
$initial = EM.connection_count
+ EM.start_server("127.0.0.1", 9999, Server)
+ $server_started = EM.connection_count
EM.next_tick{
- $server_started = EM.connection_count
EM.connect("127.0.0.1", 9999, Client)
}
}
assert_equal(0, $initial)
\ No newline at end of file