Skip to content

Commit b970d3f

Browse files
committed
fix: update remaining hardcoded ports in E2E test utils
- api-helpers.ts: API URL fallback from 29000 to HDX_E2E_API_PORT - seed-clickhouse.ts: ClickHouse host fallback from 8123 to HDX_E2E_CH_PORT
1 parent 101cd39 commit b970d3f

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

packages/app/tests/e2e/seed-clickhouse.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ interface ClickHouseConfig {
1616
}
1717

1818
const DEFAULT_CONFIG: ClickHouseConfig = {
19-
host: process.env.CLICKHOUSE_HOST || 'http://localhost:8123',
19+
host:
20+
process.env.CLICKHOUSE_HOST ||
21+
`http://localhost:${process.env.HDX_E2E_CH_PORT || '48123'}`,
2022
user: process.env.CLICKHOUSE_USER || 'default',
2123
password: process.env.CLICKHOUSE_PASSWORD || '',
2224
};

packages/app/tests/e2e/utils/api-helpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
*/
77
import { Page } from '@playwright/test';
88

9-
const API_URL = process.env.E2E_API_URL || 'http://localhost:29000';
9+
const API_PORT = process.env.HDX_E2E_API_PORT || '49100';
10+
const API_URL = process.env.E2E_API_URL || `http://localhost:${API_PORT}`;
1011

1112
/**
1213
* Fetches the current user's access key for API authentication

0 commit comments

Comments
 (0)