Skip to content

Commit

Permalink
swapped port between redis instances
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanluciano committed Nov 16, 2023
1 parent 482767c commit beffb97
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ jobs:

runs-on: ${{ format('{0}-latest', matrix.os) }}

# services:
# redis:
# image: redis:${{ matrix.redis }}
# ports:
# - 6379:6379
# options: --entrypoint redis-server
services:
redis:
image: redis:${{ matrix.redis }}
ports:
- 7000:7000
options: --entrypoint redis-server

steps:
- uses: actions/checkout@v2
Expand All @@ -87,7 +87,7 @@ jobs:
slave1-port: 5003
slave2-port: 5004
slave3-port: 5005
sleep-duration: 5
sleep-duration: 10
- name: Redis Cluster Health Check
run: |
sudo apt-get install -y redis-tools
Expand Down
12 changes: 6 additions & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def _fix_loop(event_loop):
@pytest.fixture
async def arq_redis(loop):
redis_ = ArqRedis(
host='127.0.0.1',
port=6379,
host='localhost',
port=7000,
encoding='utf-8',
)

Expand All @@ -41,8 +41,8 @@ async def unix_socket_path(loop, tmp_path):
@pytest.fixture
async def arq_redis_msgpack(loop):
redis_ = ArqRedis(
host='127.0.0.1',
port=6379,
host='localhost',
port=7000,
encoding='utf-8',
job_serializer=msgpack.packb,
job_deserializer=functools.partial(msgpack.unpackb, raw=False),
Expand All @@ -55,8 +55,8 @@ async def arq_redis_msgpack(loop):
@pytest.fixture
async def arq_redis_cluster(loop):
settings = RedisSettings(
host='127.0.0.1',
port='5000',
host='localhost',
port=6379,
conn_timeout=5,
cluster_mode=True
)
Expand Down

0 comments on commit beffb97

Please sign in to comment.