File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Testcontainers/Configurations/Networks Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public override PulsarContainer Build()
7575 waitStrategy = waitStrategy . UntilMessageIsLogged ( "Function worker service started" ) ;
7676 }
7777
78- var pulsarBuilder = WithWaitStrategy ( waitStrategy ) ;
78+ var pulsarBuilder = DockerResourceConfiguration . WaitStrategies . Count ( ) > 1 ? this : WithWaitStrategy ( waitStrategy ) ;
7979 return new PulsarContainer ( pulsarBuilder . DockerResourceConfiguration ) ;
8080 }
8181
@@ -156,9 +156,6 @@ public Task<bool> UntilAsync(IContainer container)
156156 /// <inheritdoc cref="IWaitUntil.UntilAsync" />
157157 private async Task < bool > UntilAsync ( PulsarContainer container )
158158 {
159- _ = Guard . Argument ( container , nameof ( container ) )
160- . NotNull ( ) ;
161-
162159 if ( _authenticationEnabled && _authToken == null )
163160 {
164161 try
Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ public readonly struct NetworkDriver
2020 [ PublicAPI ]
2121 public static readonly NetworkDriver Host = new NetworkDriver ( "host" ) ;
2222
23+ /// <summary>
24+ /// Gets network driver nat.
25+ /// </summary>
26+ [ PublicAPI ]
27+ public static readonly NetworkDriver Nat = new NetworkDriver ( "nat" ) ;
28+
2329 /// <summary>
2430 /// Initializes a new instance of the <see cref="NetworkDriver" /> struct.
2531 /// </summary>
You can’t perform that action at this time.
0 commit comments