Sha256: 58ce010cec03eda3592b35b4b713675f1ccfa5f1829064269d62b40aa55bd271
Contents?: true
Size: 888 Bytes
Versions: 1
Compression:
Stored size: 888 Bytes
Contents
require 'spec_helper' describe 'forked client integration' do describe :forked, :fork_required => true, :rbx => :broken do include_context 'connection opts' before do @base_path = '/zktests' @pids_root = "#{@base_path}/pid" @cnx_args = ["#{ZK.default_host}:#{ZK.test_port}", { :thread => :single, :timeout => 5 }] ZK.open(*@cnx_args) do |z| z.rm_rf(@base_path) z.mkdir_p(@pids_root) end end after do ZK.open(*connection_args) { |z| z.rm_rf(@base_path) } end it %[should deliver callbacks in the child] do 10.times do ClientForker.run(@cnx_args, @base_path) do |forker| forker.stat.should_not be_signaled forker.stat.should be_exited forker.stat.should be_success end end end # should deliver callbacks in the child end # forked end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zk-1.4.2 | spec/zk/00_forked_client_integration_spec.rb |