integration tests
Some checks failed
CI / lint-typecheck (pull_request) Failing after 4m51s
CI / tests (pull_request) Has been skipped
CI / contract-tests (pull_request) Has been skipped
CI / e2e-tests (pull_request) Has been skipped
CI / comment-pr (pull_request) Has been skipped
CI / commit-types (pull_request) Has been skipped
Some checks failed
CI / lint-typecheck (pull_request) Failing after 4m51s
CI / tests (pull_request) Has been skipped
CI / contract-tests (pull_request) Has been skipped
CI / e2e-tests (pull_request) Has been skipped
CI / comment-pr (pull_request) Has been skipped
CI / commit-types (pull_request) Has been skipped
This commit is contained in:
@@ -48,7 +48,10 @@ export class IntegrationTestHarness {
|
||||
this.docker = DockerManager.getInstance();
|
||||
this.database = new DatabaseManager(config.database);
|
||||
this.api = new ApiClient({ baseUrl: config.api.baseUrl, timeout: 60000 });
|
||||
this.factory = new DataFactory(this.database);
|
||||
|
||||
const { host, port, database, user, password } = config.database;
|
||||
const dbUrl = `postgresql://${user}:${password}@${host}:${port}/${database}`;
|
||||
this.factory = new DataFactory(dbUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -62,10 +65,10 @@ export class IntegrationTestHarness {
|
||||
await this.docker.start();
|
||||
|
||||
// Wait for database to be ready
|
||||
await this.database.waitForReady(this.config.timeouts.setup);
|
||||
await this.database.waitForReady(this.config.timeouts?.setup);
|
||||
|
||||
// Wait for API to be ready
|
||||
await this.api.waitForReady(this.config.timeouts.setup);
|
||||
await this.api.waitForReady(this.config.timeouts?.setup);
|
||||
|
||||
console.log('[Harness] ✓ Setup complete - all services ready');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user