mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-31 06:33:25 +02:00
Bump Testcontainers version to 4.5.0 (#1311)
* Bump Testcontainers version to 4.5.0 The Testcontainers dependency Docker.DotNet was bumped to 3.128.1 and is not binary compatible with previous version. When a user has a direct dependency on Testcontainers 4.5.0, WireMock.Net.Testcontainers fails with : System.MissingMethodException : Method not found: 'Docker.DotNet.DockerClient Docker.DotNet.DockerClientConfiguration.CreateClient(System.Version)' * Bump System.Net.Http.Json version to 8.0.1 Minimum required version for Testcontainers 4.5.0 * Do not dispose null container
This commit is contained in:
committed by
GitHub
parent
d4b95e73ea
commit
8ba243ddcd
@@ -123,7 +123,11 @@ public partial class TestcontainersTests
|
||||
}
|
||||
finally
|
||||
{
|
||||
await wireMockContainer.StopAsync();
|
||||
// Stop the container
|
||||
if(wireMockContainer is not null)
|
||||
{
|
||||
await wireMockContainer.StopAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user