Closed Hamiller78 closed 4 days ago
Do you use multiple modules? Please make sure you update all dependencies to version 3.9.0.
My bad, you're right. Normally I get seperate pull requests for each module of a package and immediately see when I have to update them together. Somehow I didn't get a pull request for Testcontainers.MsSql and overlooked it in ther global packages.props.
Thanks a lot! The tests worked after I increased the version for both modules.
Testcontainers version
3.9
Using the latest Testcontainers version?
Yes
Host OS
Windows (but also occurs in Linux Build Agent)
Host arch
x86
.NET version
.NET 7
Docker version
Docker info
What happened?
Hi!
our integration test code breaks with 3.9.
We initialize our test container like this:
In our Dependabot branch to update from Testcontainers 3.8 to 3.9 this breaks. During test execution (building the project works fine) we get the exception (see log for original, I formatted it a bit nicer here):
I checked in your code base: In DotNet.Testcontainers.Configurations the constructor for ContainerConfiguration now takes a parameter of type IEnumerable instead of IEnumerable. I would expect that this doesn't matter since the constructor is not called explicitly and the parameter has null as a default, but here we are.
Could you check the issue? Perhaps it just needs changing back to the more general IEnumerable? We'd appreciate it it very much.
Kind regards, Torben
Relevant log output
Additional information
No response