Sha256: 8122c66068b146f9cbd5f1239a10ed6561a0935191392b69a3b388ffa2d69142

Contents?: true

Size: 405 Bytes

Versions: 3

Compression:

Stored size: 405 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

3 entries across 3 versions & 1 rubygems

Version Path
dripdrop-0.8.1 spec/spec_helper.rb
dripdrop-0.8.0 spec/spec_helper.rb
dripdrop-0.7.1 spec/spec_helper.rb