From 85b44e5b6a2d778f0559f94a10d6476a5ea94487 Mon Sep 17 00:00:00 2001 From: Ivan Vydrin Date: Thu, 30 Jul 2026 08:00:09 +0300 Subject: [PATCH] Name the CosmosDB emulator image, as the other fixtures already do Testcontainers has deprecated the parameterless builders in favour of the ones that take an image, and the CosmosDB fixture was the last using the old form. Two warnings, one per target framework. The Redis, PostgreSQL and SQL Server fixtures beside it already name their image. This makes the emulator match, and makes the version the tests run against visible in the file rather than decided by the package. Found on a cleaned build. An incremental one had reported none, which is the second time today that difference has hidden a warning I had just introduced. --- tests/Healthie.Tests.Unit/ContainerFixtures.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Healthie.Tests.Unit/ContainerFixtures.cs b/tests/Healthie.Tests.Unit/ContainerFixtures.cs index 09947ca..28b6a8c 100644 --- a/tests/Healthie.Tests.Unit/ContainerFixtures.cs +++ b/tests/Healthie.Tests.Unit/ContainerFixtures.cs @@ -95,7 +95,8 @@ protected override MsSqlContainer Build() => /// public sealed class CosmosDbFixture : ContainerFixture { - protected override CosmosDbContainer Build() => new CosmosDbBuilder().Build(); + protected override CosmosDbContainer Build() => + new CosmosDbBuilder("mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview").Build(); /// The connection string, once the container is up. public string ConnectionString => Container!.GetConnectionString();