mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
WireMock.Net 1.5.46 is incompatible with TestContainers 3.7.0 (issue 1) #565
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lukasszh on GitHub (Jan 23, 2024).
Originally assigned to: @StefH on GitHub.
Describe the bug
After upgrading from .NET 7 to version 8, WireMock cannot be started anymore.
Test to reproduce
Once this line is added to the IClassFixture of xUnit, the error message appears.
With .NET 7 and the same setup, everything worked perfectly fine.
Stacktrace
Xunit.Sdk.TestClassException
The following constructor parameters did not have matching fixture data: TestFactory factory
Exception doesn't have a stacktrace
@StefH commented on GitHub (Jan 23, 2024):
https://github.com/WireMock-Net/WireMock.Net/pull/1057
@StefH commented on GitHub (Jan 23, 2024):
@lukasszh
I did test it in my Windows machine using Windows and Linux Docker, and .NET6, 7 & 8 work fine.
@StefH commented on GitHub (Jan 24, 2024):
https://github.com/WireMock-Net/WireMock.Net/issues/1059
@StefH commented on GitHub (Jan 24, 2024):
@lukasszh
Are you also using TestContainers version 3.7.0 ?
@StefH commented on GitHub (Jan 24, 2024):
@lukasszh
You can try preview version
1.5.46-ci-18317if that solves your problem.https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions
@lukasszh commented on GitHub (Jan 25, 2024):
@StefH: Thank you for the quick problem analysis!
After some further problem analysis, I found out that it is also related to the compatibility with TestContainers 3.7.0. Using your fix 1.5.46-ci-18317 has solved my problem.
@StefH commented on GitHub (Jan 25, 2024):
Thanks for confirming.
I'll release a new official NuGet today.