spec/p2ruby/data_stream_spec.rb in p2ruby-0.1.2 vs spec/p2ruby/data_stream_spec.rb in p2ruby-0.1.4

- old
+ new

@@ -1,6 +1,6 @@ -# encoding: utf-8 +# encoding: CP1251 require 'spec_helper' def baseless_opts {:stream_name => 'RTS_INDEX_REPL', :type => P2::RT_COMBINED_DYNAMIC} @@ -11,9 +11,10 @@ start_router P2::Application.reset CLIENT_INI @conn = P2::Connection.new :app_name => 'DSTest', :host => "127.0.0.1", :port => 4001 @conn.Connect + sleep 0.5 @conn.should be_connected @conn.should be_logged # Disconnected connection, for comparison @disconn = P2::Connection.new :app_name => 'DSTestDisconnected', :host => "127.0.0.1", :port => 4001