Tommy Alander
Tommy Alander
See the CosmosDb emulator PR for more details. This should work as well: ` public sealed class CosmosDbFixture : IDisposable, IAsyncLifetime { private readonly IOutputConsumer consumer = Consume.RedirectStdoutAndStderrToStream(new MemoryStream(), new...
@Yeseh You are not connecting the output consumer. Add: .WithOutputConsumer(configuration.OutputConsumer). Also add a this.OutputConsumer = Consume.RedirectStdoutAndStderrToStream(new MemoryStream(), new MemoryStream()); If you want I can help out with this.
Ok. I currently have a working CosmosDbFixture which can be used to fix this. One thing to note is that the host is not always "localhost" depending on where docker...
@Yeseh Did some quick changes to make the test work. I think the mongo api should be separated into some subclass. Messy with all properties.
> @ktjn Thanks a lot! > > Definitely agree on the mongo part. Think the best route is a separate testcontainer altogether, because of all the differences. What do you...
It's getting stuck at: 2022-09-06 20:51:19.295 +02:00 [INF] DotNet.Testcontainers.Tests.Initialized Attach "DotNet.Testcontainers.Configurations.RedirectStdoutAndStderrToStream" at Docker container "c9021df372bcf28a38a87946b07b6c077c3f22b0659e7ad7192a3639899a6860" 2022-09-06 20:51:19.297 +02:00 [INF] DotNet.Testcontainers.Tests.Initialized Start Docker container "c9021df372bcf28a38a87946b07b6c077c3f22b0659e7ad7192a3639899a6860" I works fine on windows and...
The test still works on a linux vm. Added a 5 min timeout so it doesn't run forever. Might need to add some logging to understand the problem.
> Do you need any help? Let me know if I should take a look at something. Thanks. No, just wanted to understand why the container didn't start correctly. But...
@HofmeisterAn Can you please stop the build? my task.delay hack did fail the test but the wait strategy is still running? Can I set a timeout for the tests until...
> Sorry, just read your message now. BTW, you should assign a random host port `base(image, DefaultSqlApiPort, DefaultSqlApiPort)` should be `base(image, DefaultSqlApiPort)`. Yes, will fix. Just wanted to build to...