Skip to content

Commit

Permalink
fix(ci): update test hostnames
Browse files Browse the repository at this point in the history
  • Loading branch information
djMax committed Oct 29, 2023
1 parent b1905f8 commit 9b38630
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
30 changes: 15 additions & 15 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ services:
command: redis-server /etc/redis/redis.conf
volumes:
- type: bind
source: ./cluster.redis.conf
source: ./.github/docker/cluster.redis.conf
target: /etc/redis/redis.conf
networks:
redis:
Expand All @@ -39,7 +39,7 @@ services:
command: redis-server /etc/redis/redis.conf
volumes:
- type: bind
source: ./cluster.redis.conf
source: ./.github/docker/cluster.redis.conf
target: /etc/redis/redis.conf
networks:
redis:
Expand All @@ -49,7 +49,7 @@ services:
command: redis-server /etc/redis/redis.conf
volumes:
- type: bind
source: ./cluster.redis.conf
source: ./.github/docker/cluster.redis.conf
target: /etc/redis/redis.conf
networks:
redis:
Expand All @@ -59,7 +59,7 @@ services:
command: redis-server /etc/redis/redis.conf
volumes:
- type: bind
source: ./cluster.redis.conf
source: ./.github/docker/cluster.redis.conf
target: /etc/redis/redis.conf
networks:
redis:
Expand All @@ -69,7 +69,7 @@ services:
command: redis-server /etc/redis/redis.conf
volumes:
- type: bind
source: ./cluster.redis.conf
source: ./.github/docker/cluster.redis.conf
target: /etc/redis/redis.conf
networks:
redis:
Expand All @@ -79,7 +79,7 @@ services:
command: redis-server /etc/redis/redis.conf
volumes:
- type: bind
source: ./cluster.redis.conf
source: ./.github/docker/cluster.redis.conf
target: /etc/redis/redis.conf
networks:
redis:
Expand All @@ -104,7 +104,7 @@ services:
command: redis-server /etc/redis/redis.conf
volumes:
- type: bind
source: ./cluster.redis.conf
source: ./.github/docker/cluster.redis.conf
target: /etc/redis/redis.conf
networks:
redis:
Expand All @@ -114,7 +114,7 @@ services:
command: redis-server /etc/redis/redis.conf
volumes:
- type: bind
source: ./cluster.redis.conf
source: ./.github/docker/cluster.redis.conf
target: /etc/redis/redis.conf
networks:
redis:
Expand All @@ -124,7 +124,7 @@ services:
command: redis-server /etc/redis/redis.conf
volumes:
- type: bind
source: ./cluster.redis.conf
source: ./.github/docker/cluster.redis.conf
target: /etc/redis/redis.conf
networks:
redis:
Expand All @@ -145,7 +145,7 @@ services:
command: redis-server /etc/redis/redis.conf
volumes:
- type: bind
source: ./cluster.redis.conf
source: ./.github/docker/cluster.redis.conf
target: /etc/redis/redis.conf
networks:
redis:
Expand All @@ -155,7 +155,7 @@ services:
command: redis-server /etc/redis/redis.conf
volumes:
- type: bind
source: ./cluster.redis.conf
source: ./.github/docker/cluster.redis.conf
target: /etc/redis/redis.conf
networks:
redis:
Expand All @@ -165,7 +165,7 @@ services:
command: redis-server /etc/redis/redis.conf
volumes:
- type: bind
source: ./cluster.redis.conf
source: ./.github/docker/cluster.redis.conf
target: /etc/redis/redis.conf
networks:
redis:
Expand All @@ -186,7 +186,7 @@ services:
command: redis-server /etc/redis/redis.conf
volumes:
- type: bind
source: ./cluster.redis.conf
source: ./.github/docker/cluster.redis.conf
target: /etc/redis/redis.conf
networks:
redis:
Expand All @@ -196,7 +196,7 @@ services:
command: redis-server /etc/redis/redis.conf
volumes:
- type: bind
source: ./cluster.redis.conf
source: ./.github/docker/cluster.redis.conf
target: /etc/redis/redis.conf
networks:
redis:
Expand All @@ -206,7 +206,7 @@ services:
command: redis-server /etc/redis/redis.conf
volumes:
- type: bind
source: ./cluster.redis.conf
source: ./.github/docker/cluster.redis.conf
target: /etc/redis/redis.conf
networks:
redis:
Expand Down
4 changes: 3 additions & 1 deletion src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ describe.each([
// { type: 'cluster' },
])('$type', ({ type }) => {
const redis =
type === 'instance' ? new Redis({ host: '127.0.0.1' }) : new Cluster([{ host: 'localhost' }]);
type === 'instance'
? new Redis({ host: 'redis-single-instance' })
: new Cluster([{ host: 'redis-single-cluster-1' }]);

beforeEach(async () => {
await (redis instanceof Cluster && redis.isCluster ? waitForCluster(redis) : null);
Expand Down

0 comments on commit 9b38630

Please sign in to comment.