Relax TTL test and run a smaller cluster in GitHub Actions (#2040)

* Fix expire check in testttl

The previous logic was timing related and also kind of testing Redis'
expiration logic itself.

* Use a smaller cluster in GitHub CI
This commit is contained in:
Michael Grunder
2021-12-02 12:14:01 -08:00
committed by GitHub
parent 36a1b0c370
commit 04fd44be8b
+1 -1
View File
@@ -51,7 +51,7 @@ jobs:
redis-server --port $PORT --cluster-enabled yes --cluster-config-file $PORT.conf --daemonize yes --aclfile tests/users.acl
echo 127.0.0.1:$PORT >> tests/nodes/nodemap
done
echo yes | redis-cli --cluster create $(seq -f 127.0.0.1:%g 7000 7011) --cluster-replicas 3 --user phpredis -a phpredis
echo yes | redis-cli --cluster create $(seq -f 127.0.0.1:%g 7000 7006) --cluster-replicas 1 --user phpredis -a phpredis
- name: Start redis sentinel
run: |
wget raw.githubusercontent.com/redis/redis/6.2/sentinel.conf