From 63a140aca3476c5c8a68fac40ca0d8be27ae8f57 Mon Sep 17 00:00:00 2001 From: mo-esmp Date: Fri, 27 Sep 2024 21:25:59 +0200 Subject: [PATCH] Change SQL Server docker image to 2019. --- .../Util/MsSqlServerTestProvider.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Serilog.Ui.MsSqlServerProvider.Tests/Util/MsSqlServerTestProvider.cs b/tests/Serilog.Ui.MsSqlServerProvider.Tests/Util/MsSqlServerTestProvider.cs index 04fc5e7b..45c52a80 100644 --- a/tests/Serilog.Ui.MsSqlServerProvider.Tests/Util/MsSqlServerTestProvider.cs +++ b/tests/Serilog.Ui.MsSqlServerProvider.Tests/Util/MsSqlServerTestProvider.cs @@ -1,5 +1,4 @@ -using System.Threading.Tasks; -using Dapper; +using Dapper; using DotNet.Testcontainers.Builders; using DotNet.Testcontainers.Containers; using Microsoft.Data.SqlClient; @@ -10,6 +9,7 @@ using Serilog.Ui.Core.Extensions; using Serilog.Ui.MsSqlServerProvider; using Serilog.Ui.MsSqlServerProvider.Extensions; +using System.Threading.Tasks; using Testcontainers.MsSql; using Xunit; @@ -32,6 +32,7 @@ protected MsSqlServerTestProvider() .ForUnixContainer() .UntilCommandIsCompleted("/opt/mssql-tools18/bin/sqlcmd", "-C", "-Q", "SELECT 1;"); Container = new MsSqlBuilder() + .WithImage("mcr.microsoft.com/mssql/server:2019-lates") .WithWaitStrategy(waitStrategy) .Build(); }