Sha256: 05ed6cb74696b50628f652487d033b0d9293c2969799d5a83394ab6789a023c9

Contents?: true

Size: 1.06 KB

Versions: 21

Compression:

Stored size: 1.06 KB

Contents

# encoding: UTF-8

require File.expand_path("helper", File.dirname(__FILE__))
require "lint/blocking_commands"

class TestDistributedBlockingCommands < Test::Unit::TestCase

  include Helper::Distributed
  include Lint::BlockingCommands

  def test_blpop_raises
    assert_raises(Redis::Distributed::CannotDistribute) do
      r.blpop(["foo", "bar"])
    end
  end

  def test_blpop_raises_with_old_prototype
    assert_raises(Redis::Distributed::CannotDistribute) do
      r.blpop("foo", "bar", 0)
    end
  end

  def test_brpop_raises
    assert_raises(Redis::Distributed::CannotDistribute) do
      r.brpop(["foo", "bar"])
    end
  end

  def test_brpop_raises_with_old_prototype
    assert_raises(Redis::Distributed::CannotDistribute) do
      r.brpop("foo", "bar", 0)
    end
  end

  def test_brpoplpush_raises
    assert_raises(Redis::Distributed::CannotDistribute) do
      r.brpoplpush("foo", "bar")
    end
  end

  def test_brpoplpush_raises_with_old_prototype
    assert_raises(Redis::Distributed::CannotDistribute) do
      r.brpoplpush("foo", "bar", 0)
    end
  end
end

Version data entries

21 entries across 20 versions & 7 rubygems

Version Path
finsync_redis-3.3.5 test/distributed_blocking_commands_test.rb
redis-3.3.5 test/distributed_blocking_commands_test.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/distributed_blocking_commands_test.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/distributed_blocking_commands_test.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/distributed_blocking_commands_test.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/distributed_blocking_commands_test.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/redis-3.3.3/test/distributed_blocking_commands_test.rb
redis-3.3.3 test/distributed_blocking_commands_test.rb
abaci-0.3.0 vendor/bundle/gems/redis-3.3.1/test/distributed_blocking_commands_test.rb
abaci-0.3.0 vendor/bundle/gems/redis-3.3.2/test/distributed_blocking_commands_test.rb
redis-3.3.2 test/distributed_blocking_commands_test.rb
redis-3.3.1 test/distributed_blocking_commands_test.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/redis-3.3.0/test/distributed_blocking_commands_test.rb
redis-3.3.0 test/distributed_blocking_commands_test.rb
discourse-redis-3.2.2 test/distributed_blocking_commands_test.rb
redis-3.2.2 test/distributed_blocking_commands_test.rb
redis-3.2.1 test/distributed_blocking_commands_test.rb
redis-3.2.0 test/distributed_blocking_commands_test.rb
redis-3.1.0 test/distributed_blocking_commands_test.rb
redis-3.0.7 test/distributed_blocking_commands_test.rb