Sha256: 9a95313593ae183b3833cbe592a6069fd0eb80c89b0f0be5e0f5344561e2f022
Contents?: true
Size: 609 Bytes
Versions: 6
Compression:
Stored size: 609 Bytes
Contents
require 'spec_helper' module Cellect::Client describe NodeSet do it_behaves_like 'node set' let(:node_set){ Cellect::Client.node_set } it 'should update the node list when changing' do begin pass_until node_set, is: :ready node_set.zk.create '/nodes/node', data: 'foo', mode: :ephemeral_sequential 100.times do |i| break if node_set.nodes['node0000000001'] Thread.pass end node_set.nodes['node0000000001'].should == 'foo' ensure node_set.zk.delete '/nodes/node0000000001' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems