Sha256: e0bac3fc6f83a35901355b4da7f50191d021517006c383dac28cb711558fe1df

Contents?: true

Size: 485 Bytes

Versions: 53

Compression:

Stored size: 485 Bytes

Contents

# encoding: UTF-8

require File.expand_path("./helper", File.dirname(__FILE__))
require "redis/distributed"

setup do
  log = StringIO.new
  init Redis::Distributed.new(NODES, :logger => ::Logger.new(log))
end

load './test/lint/lists.rb'

test "RPOPLPUSH" do |r|
  assert_raise Redis::Distributed::CannotDistribute do
    r.rpoplpush("foo", "bar")
  end
end

test "BRPOPLPUSH" do |r|
  assert_raise Redis::Distributed::CannotDistribute do
    r.brpoplpush("foo", "bar", 1)
  end
end

Version data entries

53 entries across 53 versions & 6 rubygems

Version Path
classiccms-0.3.5 vendor/bundle/gems/redis-2.2.2/test/distributed_commands_on_lists_test.rb
classiccms-0.3.4 vendor/bundle/gems/redis-2.2.2/test/distributed_commands_on_lists_test.rb
classiccms-0.3.3 vendor/bundle/gems/redis-2.2.2/test/distributed_commands_on_lists_test.rb
classiccms-0.3.2 vendor/bundle/gems/redis-2.2.2/test/distributed_commands_on_lists_test.rb
classiccms-0.3.1 vendor/bundle/gems/redis-2.2.2/test/distributed_commands_on_lists_test.rb
classiccms-0.3.0 vendor/bundle/gems/redis-2.2.2/test/distributed_commands_on_lists_test.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/redis-2.2.2/test/distributed_commands_on_lists_test.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/redis-2.2.2/test/distributed_commands_on_lists_test.rb
yam-redis-with-retries-2.2.2.1 test/distributed_commands_on_lists_test.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/redis-2.2.2/test/distributed_commands_on_lists_test.rb
redis-2.2.2 test/distributed_commands_on_lists_test.rb
redis-2.2.1 test/distributed_commands_on_lists_test.rb
redis-2.2.0 test/distributed_commands_on_lists_test.rb