Sha256: 1b8e06077d14aa179efa49646fd8a939fbb040a2b9653c371c96aa0ed32f92c6
Contents?: true
Size: 619 Bytes
Versions: 2
Compression:
Stored size: 619 Bytes
Contents
require_relative "spec_helper" module Nyara describe 'evented IO' do before :all do pid = Process.pid @server = fork do exec 'ruby', __dir__ + '/apps/connect.rb' end GC.stress = false sleep 2.3 # wait for server startup end after :all do Process.kill :TERM, @server sleep 0.2 Process.kill :KILL, @server end it "works" do GC.stress = false # open-uri creates too many objects! result1 = open "http://localhost:3003", &:read result2 = open "http://baidu.com", &:read assert_equal result2, result1 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nyara-0.1.pre.2 | spec/evented_io_spec.rb |
nyara-0.1.pre.1 | spec/evented_io_spec.rb |