From e1a14f5831eb92729696382703de33d991d3b7d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Hofman?= Date: Fri, 6 Oct 2023 16:14:41 +0200 Subject: [PATCH] SNOW-902611 bugfixe for async close failures --- Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs b/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs index 40bc46acc..70d4062c4 100644 --- a/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs +++ b/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs @@ -18,7 +18,7 @@ namespace Snowflake.Data.Tests.IntegrationTests using Snowflake.Data.Tests.Mock; using System.Runtime.InteropServices; - [TestFixture] + [TestFixture, NonParallelizable] class SFConnectionIT : SFBaseTest { private static readonly SFLogger s_logger = SFLoggerFactory.GetLogger(); @@ -28,6 +28,7 @@ public void TestBasicConnection() { using (IDbConnection conn = new SnowflakeDbConnection()) { + bool pooling = SnowflakeDbConnectionPool.GetPooling(); SnowflakeDbConnectionPool.SetPooling(false); conn.ConnectionString = ConnectionString; conn.Open(); @@ -46,6 +47,7 @@ public void TestBasicConnection() conn.Close(); Assert.AreEqual(ConnectionState.Closed, conn.State); + SnowflakeDbConnectionPool.SetPooling(pooling); } }