Sha256: 57e26ad90e1eb96ee396d498960ac9da139caf1dd06a44df4fa0da46e314acc5

Contents?: true

Size: 484 Bytes

Versions: 2

Compression:

Stored size: 484 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

2 entries across 2 versions & 2 rubygems

Version Path
gorsuch-redis-3.0.0.rc1 test/distributed_commands_on_lists_test.rb
redis-3.0.0.rc1 test/distributed_commands_on_lists_test.rb