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()
75
75
waitStrategy = waitStrategy . UntilMessageIsLogged ( "Function worker service started" ) ;
76
76
}
77
77
78
- var pulsarBuilder = WithWaitStrategy ( waitStrategy ) ;
78
+ var pulsarBuilder = DockerResourceConfiguration . WaitStrategies . Count ( ) > 1 ? this : WithWaitStrategy ( waitStrategy ) ;
79
79
return new PulsarContainer ( pulsarBuilder . DockerResourceConfiguration ) ;
80
80
}
81
81
@@ -156,9 +156,6 @@ public Task<bool> UntilAsync(IContainer container)
156
156
/// <inheritdoc cref="IWaitUntil.UntilAsync" />
157
157
private async Task < bool > UntilAsync ( PulsarContainer container )
158
158
{
159
- _ = Guard . Argument ( container , nameof ( container ) )
160
- . NotNull ( ) ;
161
-
162
159
if ( _authenticationEnabled && _authToken == null )
163
160
{
164
161
try
Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ public readonly struct NetworkDriver
20
20
[ PublicAPI ]
21
21
public static readonly NetworkDriver Host = new NetworkDriver ( "host" ) ;
22
22
23
+ /// <summary>
24
+ /// Gets network driver nat.
25
+ /// </summary>
26
+ [ PublicAPI ]
27
+ public static readonly NetworkDriver Nat = new NetworkDriver ( "nat" ) ;
28
+
23
29
/// <summary>
24
30
/// Initializes a new instance of the <see cref="NetworkDriver" /> struct.
25
31
/// </summary>
You can’t perform that action at this time.
0 commit comments