@@ -77,8 +77,7 @@ public async ValueTask InitializeAsync()
7777
7878 await _network . CreateAsync ( ) ;
7979
80- _httpBin = new ContainerBuilder ( )
81- . WithImage ( "mccutchen/go-httpbin:v2.15.0" )
80+ _httpBin = new ContainerBuilder ( "mccutchen/go-httpbin:v2.15.0" )
8281 . WithName ( HttpBinContainerName )
8382 . WithNetwork ( _network )
8483 . WithNetworkAliases ( HttpBinAlias )
@@ -124,15 +123,13 @@ private async Task StartNginxH2Async()
124123
125124 try
126125 {
127- _nginxH2 = new ContainerBuilder ( )
128- . WithImage ( "macbre/nginx-http3:latest" )
126+ _nginxH2 = new ContainerBuilder ( "macbre/nginx-http3:latest" )
129127 . WithName ( NginxH2ContainerName )
130128 . WithNetwork ( _network ! )
131129 . WithPortBinding ( NginxInternalPort , true )
132130 . WithResourceMapping ( new FileInfo ( confPath ) , "/etc/nginx/" )
133131 . WithResourceMapping ( new DirectoryInfo ( Path . Combine ( _tempDir ! , "ssl" ) ) , "/etc/nginx/ssl/" )
134- . WithWaitStrategy ( Wait . ForUnixContainer ( )
135- . UntilPortIsAvailable ( NginxInternalPort ) )
132+ . WithWaitStrategy ( Wait . ForUnixContainer ( ) . UntilInternalTcpPortIsAvailable ( NginxInternalPort ) )
136133 . Build ( ) ;
137134
138135 await _nginxH2 . StartAsync ( ) ;
@@ -159,8 +156,7 @@ private async Task StartNginxH3Async()
159156
160157 try
161158 {
162- _nginxH3 = new ContainerBuilder ( )
163- . WithImage ( "macbre/nginx-http3:latest" )
159+ _nginxH3 = new ContainerBuilder ( "macbre/nginx-http3:latest" )
164160 . WithName ( NginxH3ContainerName )
165161 . WithNetwork ( _network ! )
166162 . WithPortBinding ( port , port )
0 commit comments