Sha256: e0c7c5c148433cbf918b06ab70ae9cebbb7e30bd4f2b4a180a36c3416f6b38cb
Contents?: true
Size: 800 Bytes
Versions: 3
Compression:
Stored size: 800 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zk-1.2.0 | spec/zk/client_spec.rb |
zk-1.1.1 | spec/zk/client_spec.rb |
zk-1.1.0 | spec/zk/client_spec.rb |