Skip to content

Commit

Permalink
Merge pull request #1218 from casperisfine/test-redis-7.2
Browse files Browse the repository at this point in the history
Add Redis server 7.2 to the CI matrix
  • Loading branch information
byroot committed Aug 17, 2023
2 parents 9518dab + 63581a9 commit 5d5252d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 32 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Expand Up @@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-latest
env:
LOW_TIMEOUT: "0.01"
REDIS_BRANCH: "7.0"
REDIS_BRANCH: "7.2"
steps:
- name: Check out code
uses: actions/checkout@v3
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
runs-on: ubuntu-latest
env:
LOW_TIMEOUT: "0.01"
REDIS_BRANCH: "7.0"
REDIS_BRANCH: "7.2"
TRUFFLERUBYOPT: "--engine.Mode=latency"
steps:
- name: Check out code
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
env:
LOW_TIMEOUT: "0.01"
DRIVER: ${{ matrix.driver }}
REDIS_BRANCH: "7.0"
REDIS_BRANCH: "7.2"
steps:
- name: Check out code
uses: actions/checkout@v3
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
strategy:
fail-fast: false
matrix:
redis: ["6.2", "6.0", "5.0"]
redis: ["7.0", "6.2", "6.0", "5.0"]
runs-on: ubuntu-latest
env:
LOW_TIMEOUT: "0.14"
Expand Down
2 changes: 1 addition & 1 deletion makefile
@@ -1,4 +1,4 @@
REDIS_BRANCH ?= 7.0
REDIS_BRANCH ?= 7.2
ROOT_DIR :=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
TMP := tmp
CONF := ${ROOT_DIR}/test/support/conf/redis-${REDIS_BRANCH}.conf
Expand Down
2 changes: 1 addition & 1 deletion test/redis/remote_server_control_commands_test.rb
Expand Up @@ -75,7 +75,7 @@ def test_object

assert_equal 1, r.object(:refcount, "list")
encoding = r.object(:encoding, "list")
assert encoding == "ziplist" || encoding == "quicklist", "Wrong encoding for list"
assert encoding == "ziplist" || encoding == "quicklist" || encoding == "listpack", "Wrong encoding for list"
assert r.object(:idletime, "list").is_a?(Integer)
end

Expand Down
26 changes: 0 additions & 26 deletions test/redis/scanning_test.rb
Expand Up @@ -127,32 +127,6 @@ def test_scan_each_block_match
assert all_keys.sort == keys_from_scan.uniq.sort
end

def test_sscan_with_encoding
%i[intset hashtable].each do |enc|
r.del "set"

prefix = ""
prefix = "ele:" if enc == :hashtable

elements = []
100.times { |j| elements << "#{prefix}#{j}" }

r.sadd "set", elements

assert_equal enc.to_s, r.object("encoding", "set")

cursor = 0
all_keys = []
loop do
cursor, keys = r.sscan "set", cursor
all_keys += keys
break if cursor == "0"
end

assert_equal 100, all_keys.uniq.size
end
end

def test_sscan_each_enumerator
elements = []
100.times { |j| elements << "ele:#{j}" }
Expand Down

0 comments on commit 5d5252d

Please sign in to comment.