From c9031cfa4d2d554ebe474b25dfd8a2b09b2578ca Mon Sep 17 00:00:00 2001 From: Krzysztof Nozderko Date: Mon, 11 Dec 2023 18:12:26 +0100 Subject: [PATCH] ClearAllPools with synchronous session closing --- Snowflake.Data/Core/Session/SessionPool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Snowflake.Data/Core/Session/SessionPool.cs b/Snowflake.Data/Core/Session/SessionPool.cs index 439afbd48..14ad70848 100644 --- a/Snowflake.Data/Core/Session/SessionPool.cs +++ b/Snowflake.Data/Core/Session/SessionPool.cs @@ -187,7 +187,7 @@ internal void ClearAllPools() { foreach (SFSession session in _sessions) { - Task.Run(() => session.close()); + session.close(); // it is left synchronously here because too much async tasks slows down testing } _sessions.Clear(); }