Sha256: f9b6f2179326d02a2d6032cb807f504d01d8288f10dd3146cb960c8c0fa84ce4

Contents?: true

Size: 403 Bytes

Versions: 5

Compression:

Stored size: 403 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), %w[. .. lib dripdrop]))
Thread.abort_on_exception = true

# Used to test websocket clients. 
require 'gimite-websocket'

def rand_addr(scheme='tcp')
  "#{scheme}://127.0.0.1:#{rand(10_000) + 20_000}"
end

def run_reactor(time=0.2,opts={},&block)
  ddn = DripDrop::Node.new(opts,&block)
  ddn.start
  sleep time
  ddn.stop
  sleep 0.1
  ddn
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dripdrop-0.9.6 spec/spec_helper.rb
dripdrop-0.9.5 spec/spec_helper.rb
dripdrop-0.9.4 spec/spec_helper.rb
dripdrop-0.9.3 spec/spec_helper.rb
dripdrop-0.9.2 spec/spec_helper.rb