File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed
packages/extension-driver-ksqldb Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff 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 ( {
Original file line number Diff line number Diff 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' ] ,
Original file line number Diff line number Diff 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 } `
You can’t perform that action at this time.
0 commit comments