Sha256: 1ef1060b08e26c3f04fb7ee1426bd26c1014349f74df4ca100f6cc6276c61708

Contents?: true

Size: 622 Bytes

Versions: 8

Compression:

Stored size: 622 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe RubyRabbitmqJanus::Janus::Concurrencies::KeepaliveTimer, type: :thread, name: :keepalive_timer do
  let(:concurrency) { RubyRabbitmqJanus::Janus::Concurrencies::KeepaliveTimer.new }

  it { expect(concurrency.send(:time_to_live)).to be_a(Integer) }
  it { expect(concurrency.send(:time_to_die)).to be_a(Integer) }
  it { expect(concurrency.instance_variable_get(:@timer)).to be_a(Timers::Group) }
  it { expect(concurrency.instance_variable_get(:@time_to_live)).to eql(RubyRabbitmqJanus::Tools::Config.instance.options['janus']['session']['keepalive']) }
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.2.2 spec/thread/keepalive_timer_spec.rb
ruby_rabbitmq_janus-2.2.1 spec/thread/keepalive_timer_spec.rb
ruby_rabbitmq_janus-2.2.1.pre.181 spec/thread/keepalive_timer_spec.rb
ruby_rabbitmq_janus-2.2.1.pre.180 spec/thread/keepalive_timer_spec.rb
ruby_rabbitmq_janus-2.2.0.pre.179 spec/thread/keepalive_timer_spec.rb
ruby_rabbitmq_janus-2.2.0 spec/thread/keepalive_timer_spec.rb
ruby_rabbitmq_janus-2.2.0.pre.177 spec/thread/keepalive_timer_spec.rb
ruby_rabbitmq_janus-2.2.0.pre.173 spec/thread/keepalive_timer_spec.rb