Skip to content

Commit 6136c9c

Browse files
committed
fix: better integration test setup
1 parent 43b535b commit 6136c9c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docker-compose.tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ services:
2222
build: .
2323
container_name: test-realtime-server
2424
ports:
25-
- "4000:4000"
25+
- "4100:4100"
2626
extra_hosts:
2727
- "host.docker.internal:host-gateway"
2828
environment:
29-
PORT: 4000
29+
PORT: 4100
3030
DB_HOST: host.docker.internal
3131
DB_PORT: 5532
3232
DB_USER: postgres
@@ -50,7 +50,7 @@ services:
5050
- realtime-dev.local
5151
- realtime-dev.localhost
5252
healthcheck:
53-
test: ["CMD", "curl", "-f", "http://localhost:4000/"]
53+
test: ["CMD", "curl", "-f", "http://localhost:4100/"]
5454
interval: 10s
5555
timeout: 5s
5656
retries: 5

test/integration/tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { deadline } from "jsr:@std/async/deadline";
77
const withDeadline = <Fn extends (...args: never[]) => Promise<unknown>>(fn: Fn, ms: number): Fn =>
88
((...args) => deadline(fn(...args), ms)) as Fn;
99

10-
const url = "http://realtime-dev.localhost:4000/socket";
10+
const url = "http://realtime-dev.localhost:4100/socket";
1111
const serviceRoleKey = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjIwNzU3NzYzODIsInJlZiI6IjEyNy4wLjAuMSIsInJvbGUiOiJzZXJ2aWNlX3JvbGUiLCJpYXQiOjE3NjA3NzYzODJ9.nupH8pnrOTgK9Xaq8-D4Ry-yQ-PnlXEagTVywQUJVIE"
1212
const apiKey = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjIwNzU2NjE3MjEsInJlZiI6IjEyNy4wLjAuMSIsInJvbGUiOiJhdXRoZW50aWNhdGVkIiwiaWF0IjoxNzYwNjYxNzIxfQ.PxpBoelC9vWQ2OVhmwKBUDEIKgX7MpgSdsnmXw7UdYk";
1313

0 commit comments

Comments
 (0)