This is an automated email from the ASF dual-hosted git repository. ptupitsyn pushed a commit to branch ignite-22133-bak in repository https://gitbox.apache.org/repos/asf/ignite-3.git
commit 938dfa7bd137a42f4cf21c5f276376f971729e9a Author: Pavel Tupitsyn <[email protected]> AuthorDate: Fri Jul 11 13:49:06 2025 +0300 wip test infra - initialize DB --- .../TestUtilities/IgniteTestStore.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/TestUtilities/IgniteTestStore.cs b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/TestUtilities/IgniteTestStore.cs index 6fed871df75..c1c16e39657 100644 --- a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/TestUtilities/IgniteTestStore.cs +++ b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/TestUtilities/IgniteTestStore.cs @@ -31,6 +31,21 @@ public class IgniteTestStore : RelationalTestStore public override void Clean(DbContext context) => DropAllTables().GetAwaiter().GetResult(); + public override TestStore Initialize( + IServiceProvider serviceProvider, + Func<DbContext> createContext, + Action<DbContext>? seed = null, + Action<DbContext>? clean = null) + { + using var context = createContext(); + Clean(context); + context.Database.EnsureCreated(); + + base.Initialize(serviceProvider, createContext, seed, clean); + + return this; + } + private static async Task DropAllTables() { // Drop all tables so that EnsureCreatedAsync works as expected and every test starts with a clean slate.
