Sha256: ca8deedfd21d47706960dbcd89d570f69c48bc3282c8ca303593b81afd173f97

Contents?: true

Size: 699 Bytes

Versions: 23

Compression:

Stored size: 699 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe RubyRabbitmqJanus::Janus::Concurrencies::KeepaliveInitializer, type: :thread, name: :keepalive_initializer do
  let(:instance) { RubyRabbitmqJanus::Models::JanusInstance.find((ENV['MONGO'].match?('true') ? %w[1 2] : [1, 2]).sample) }
  let(:concurrency) { described_class.new(instance) }

  it { expect(concurrency.send(:rabbit)).to be_a(RubyRabbitmqJanus::Rabbit::Connect) }
  it { expect(concurrency.send(:lock)).to be_a(Mutex) }
  it { expect(concurrency.send(:condition)).to be_a(ConditionVariable) }
  it { expect(concurrency.instance_variable_get(:@thread)).to be_a(RubyRabbitmqJanus::Janus::Concurrencies::KeepaliveThread) }
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.7.1 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.7.1.pre.274 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.7.0.pre.272 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.7.0 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.7.0.pre.269 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.7.0.pre.267 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.6.0 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.263 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.261 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.260 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.259 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.258 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.247 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.246 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.244 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.240 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.239 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.238 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.233 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.229 spec/ruby_rabbitmq_janus/janus/concurrencies/keepalive_initializer_spec.rb