Sha256: 05d4e783caa95c7458909dd9ee513a04033f5aaf1fdff073522d7969a9e2eae6

Contents?: true

Size: 739 Bytes

Versions: 14

Compression:

Stored size: 739 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe RubyRabbitmqJanus::Janus::Concurrencies::KeepaliveThread, type: :thread, name: :keepalive_initializer do
  let(:instance) { RubyRabbitmqJanus::Models::JanusInstance.find((ENV['MONGO'].match?('true') ? %w[1 2] : [1, 2]).sample) }
  let(:concurrency) { RubyRabbitmqJanus::Janus::Concurrencies::KeepaliveInitializer.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

14 entries across 14 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.5.1.pre.217 spec/thread/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.5.1 spec/thread/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.5.1.pre.215 spec/thread/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.5.0 spec/thread/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.5.0.pre.213 spec/thread/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.5.0.pre.210 spec/thread/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.5.0.pre.209 spec/thread/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.4.0.pre.208 spec/thread/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.3.1.pre.201 spec/thread/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.3.1.pre.198 spec/thread/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.3.0.pre.197 spec/thread/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.3.0.pre.196 spec/thread/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.3.0 spec/thread/keepalive_initializer_spec.rb
ruby_rabbitmq_janus-2.3.0.pre.194 spec/thread/keepalive_initializer_spec.rb