File: commands_on_hyper_log_log_test.rb

package info (click to toggle)
ruby-redis 4.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,296 kB
  • sloc: ruby: 14,028; makefile: 117; sh: 24
file content (27 lines) | stat: -rw-r--r-- 581 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# frozen_string_literal: true

require "helper"

class TestDistributedCommandsOnHyperLogLog < Minitest::Test
  include Helper::Distributed
  include Lint::HyperLogLog

  def test_pfmerge
    target_version '2.8.9' do
      assert_raises Redis::Distributed::CannotDistribute do
        super
      end
    end
  end

  def test_pfcount_multiple_keys_diff_nodes
    target_version '2.8.9' do
      assert_raises Redis::Distributed::CannotDistribute do
        r.pfadd 'foo', 's1'
        r.pfadd 'bar', 's2'

        assert r.pfcount('res', 'foo', 'bar')
      end
    end
  end
end