File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -31,15 +31,16 @@ export async function setup(project: TestProject) {
31
31
return
32
32
}
33
33
34
- await $ `docker run --rm --detach --publish 2135 --publish 2136 --publish 8765 --publish 9092 --hostname localhost --platform linux/amd64 --name ydb ydbplatform/local-ydb:25.1.1.3`
34
+ let containerID = await $ `docker run --rm --detach --publish 2135 --publish 2136 --publish 8765 --publish 9092 --hostname localhost --platform linux/amd64 ydbplatform/local-ydb:25.1.1.3` . text ( )
35
+ containerID = containerID . trim ( )
35
36
36
37
let signal = AbortSignal . timeout ( 30 * 1000 )
37
- while ( ( await $ `docker inspect -f {{.State.Health.Status}} ydb ` . text ( ) ) . trim ( ) !== 'healthy' ) {
38
+ while ( ( await $ `docker inspect -f {{.State.Health.Status}} ${ containerID } ` . text ( ) ) . trim ( ) !== 'healthy' ) {
38
39
signal . throwIfAborted ( )
39
40
await $ `sleep 1`
40
41
}
41
42
42
- let [ ipv4 , _ipv6 ] = await $ `docker port ydb 2136/tcp` . lines ( )
43
+ let [ ipv4 , _ipv6 ] = await $ `docker port ${ containerID } 2136/tcp` . lines ( )
43
44
44
45
project . provide ( 'connectionString' , `grpc://${ ipv4 } /local` )
45
46
project . provide ( 'credentialsUsername' , 'root' )
You can’t perform that action at this time.
0 commit comments