File tree Expand file tree Collapse file tree
snippets/dotnet-snippets/sample-tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ private static async Task<IContainer> StartPGAdapterAndEmulator()
5252 . WithPortBinding ( 5432 , true )
5353 // Wait until the PostgreSQL port is available.
5454 . WithWaitStrategy ( Wait . ForUnixContainer ( ) . UntilExternalTcpPortIsAvailable ( 5432 ) )
55+ . WithWaitStrategy ( Wait . ForUnixContainer ( ) . UntilInternalTcpPortIsAvailable ( 5432 ) )
5556 // Build the container configuration.
5657 . Build ( ) ;
5758 await container . StartAsync ( ) ;
Original file line number Diff line number Diff line change @@ -234,6 +234,7 @@ private static async Task<IContainer> StartPGAdapterAndEmulator()
234234 . WithPortBinding ( 5432 , true )
235235 // Wait until the PostgreSQL port is available.
236236 . WithWaitStrategy ( Wait . ForUnixContainer ( ) . UntilExternalTcpPortIsAvailable ( 5432 ) )
237+ . WithWaitStrategy ( Wait . ForUnixContainer ( ) . UntilInternalTcpPortIsAvailable ( 5432 ) )
237238 // Build the container configuration.
238239 . Build ( ) ;
239240 await container . StartAsync ( ) ;
You can’t perform that action at this time.
0 commit comments