File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ namespace CommunityToolkit.Datasync.TestCommon.Fixtures;
1010[ ExcludeFromCodeCoverage ]
1111public class MsSqlDatabaseFixture : IAsyncLifetime
1212{
13+ private const string imageName = "mcr.microsoft.com/mssql/server:2025-CU2-ubuntu-22.04" ;
1314 private readonly MsSqlContainer _container ;
1415
1516 public MsSqlDatabaseFixture ( )
1617 {
17- this . _container = new MsSqlBuilder ( )
18- . Build ( ) ;
18+ this . _container = new MsSqlBuilder ( imageName ) . Build ( ) ;
1919 }
2020
2121 /// <inheritdoc />
Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ namespace CommunityToolkit.Datasync.TestCommon.Fixtures;
1414[ ExcludeFromCodeCoverage ]
1515public class PostgreSqlDatabaseFixture : IAsyncLifetime
1616{
17+ private const string imageName = "postgres:18-alpine" ;
1718 private readonly PostgreSqlContainer _container ;
1819
1920 public PostgreSqlDatabaseFixture ( )
2021 {
21- this . _container = new PostgreSqlBuilder ( )
22- . WithImage ( "postgres:17-alpine" )
22+ this . _container = new PostgreSqlBuilder ( imageName )
2323 . WithCleanUp ( true )
2424 . WithUsername ( "testuser" )
2525 . WithPassword ( "testpassword" )
You can’t perform that action at this time.
0 commit comments