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 e85aeaaf6130f636a07bafb1c2830b04023c7f36
Author: Pavel Tupitsyn <[email protected]>
AuthorDate: Fri Jun 27 14:39:44 2025 +0300

    Fix table drop logic - test works again
---
 .../dotnet/Apache.Ignite.EntityFrameworkCore.Tests/BasicTest.cs  | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git 
a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.Tests/BasicTest.cs 
b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.Tests/BasicTest.cs
index 8d6207cc02c..3962cd5d3a8 100644
--- 
a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.Tests/BasicTest.cs
+++ 
b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.Tests/BasicTest.cs
@@ -25,16 +25,15 @@ using NUnit.Framework;
 public class BasicTest
 {
     [SetUp]
-    public async Task SetUp()
+    public async Task DropAllTables()
     {
+        // Drop all tables so that EnsureCreatedAsync works as expected and 
every test starts with a clean slate.
         using var client = await 
IgniteClient.StartAsync(new(GetIgniteEndpoint()));
 
         var tables = await client.Tables.GetTablesAsync();
+        var script = string.Join("\n", tables.Select(t => $"DROP TABLE 
{t.Name}; "));
 
-        foreach (var table in tables)
-        {
-            await client.Sql.ExecuteAsync(null, $"DROP TABLE 
\"{table.Name}\"");
-        }
+        await client.Sql.ExecuteScriptAsync(script);
     }
 
     [Test]

Reply via email to