Skip to content

Commit 4e90906

Browse files
committed
feat(extension-driver-ksqldb): adjust the dockerode container volume path
1 parent 4599aba commit 4e90906

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

packages/extension-driver-ksqldb/src/lib/restfulClient.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,9 @@ export class RestfulClient {
111111
}
112112

113113
public async checkConnectionRunning(): Promise<boolean> {
114-
try {
115-
const status = await this.checkConnection();
116-
const isRunning = status === 'RUNNING';
117-
return isRunning;
118-
} catch (e) {
119-
return false;
120-
}
114+
const status = await this.checkConnection();
115+
const isRunning = status === 'RUNNING';
116+
return isRunning;
121117
}
122118

123119
public async query({

packages/extension-driver-ksqldb/test/docker/compose.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class Compose {
7474

7575
private convertContainerConfig(service: ComposeConfig, network: string) {
7676
// dockerode does not support relative paths in container volumes
77-
const Binds = (service['volumes'] || []).map((volume) => volume.replace('./', ''));
77+
const Binds = (service['volumes'] || []).map((volume) => volume.replace('./', `${__dirname}/`));
7878
return {
7979
Image: service['image'],
8080
name: service['hostname'],

packages/extension-driver-ksqldb/test/ksqlDbServer.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ export class KSqlDbServer {
9393

9494
public async destroy() {
9595
await compose.down();
96-
await BPromise.delay(60 * 1000);
9796
}
9897

9998
public getProfile(name: string) {
@@ -111,7 +110,7 @@ export class KSqlDbServer {
111110

112111
private async waitKSqlDbReady(client: RestfulClient): Promise<void> {
113112
// start to check connect after 1 minute
114-
await BPromise.delay(60 * 1000);
113+
// await BPromise.delay(60 * 1000);
115114
console.log(
116115
'Start to check ksqldb connection: ',
117116
`http://${this.host}:${this.port}`

0 commit comments

Comments
 (0)