Sha256: e2af09faf1f3294aaf5036077480828609c7034f4308e440c58a2311d5b8840f
Contents?: true
Size: 823 Bytes
Versions: 1
Compression:
Stored size: 823 Bytes
Contents
require 'spec_helper' describe ZK::Client::Threaded do context do include_context 'threaded client connection' it_should_behave_like 'client' end describe :close! do describe 'from a threadpool thread' do include_context 'connection opts' before do @zk = ZK::Client::Threaded.new(*connection_args).tap { |z| wait_until { z.connected? } } end after do @zk.close! unless @zk.closed? end it %[should do the right thing and not fail] do # this is an extra special case where the user obviously hates us @zk.should be_kind_of(ZK::Client::Threaded) # yeah yeah, just be sure @zk.defer do @zk.close! end wait_until(5) { @zk.closed? }.should be_true end end end end # ZK::Client::Threaded
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zk-1.4.2 | spec/zk/client_spec.rb |