File: commands_on_hyper_log_log_test.rb

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

require "helper"

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

  def test_pfmerge
    assert_raises Redis::Distributed::CannotDistribute do
      super
    end
  end

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

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