From 569c696291264f33bc962997a31954617893130d Mon Sep 17 00:00:00 2001 From: Krzysztof Nozderko Date: Mon, 20 Nov 2023 14:45:41 +0100 Subject: [PATCH] fix resetting the previous pool settings --- .../IntegrationTests/ConnectionMultiplePoolsIT.cs | 4 ++-- .../IntegrationTests/ConnectionPoolCommonIT.cs | 6 +++--- .../IntegrationTests/ConnectionSinglePoolCacheIT.cs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Snowflake.Data.Tests/IntegrationTests/ConnectionMultiplePoolsIT.cs b/Snowflake.Data.Tests/IntegrationTests/ConnectionMultiplePoolsIT.cs index 4794f336e..c5ff91639 100644 --- a/Snowflake.Data.Tests/IntegrationTests/ConnectionMultiplePoolsIT.cs +++ b/Snowflake.Data.Tests/IntegrationTests/ConnectionMultiplePoolsIT.cs @@ -10,7 +10,7 @@ namespace Snowflake.Data.Tests.IntegrationTests [NonParallelizable] public class ConnectionMultiplePoolsIT: SFBaseTest { - private static readonly PoolConfig s_previousPoolConfig = new PoolConfig(); + private readonly PoolConfig _previousPoolConfig = new PoolConfig(); [SetUp] public new void BeforeTest() @@ -23,7 +23,7 @@ public class ConnectionMultiplePoolsIT: SFBaseTest [TearDown] public new void AfterTest() { - s_previousPoolConfig.Reset(); + _previousPoolConfig.Reset(); } [OneTimeTearDown] diff --git a/Snowflake.Data.Tests/IntegrationTests/ConnectionPoolCommonIT.cs b/Snowflake.Data.Tests/IntegrationTests/ConnectionPoolCommonIT.cs index e2d84aba9..ac9c085ee 100644 --- a/Snowflake.Data.Tests/IntegrationTests/ConnectionPoolCommonIT.cs +++ b/Snowflake.Data.Tests/IntegrationTests/ConnectionPoolCommonIT.cs @@ -23,12 +23,12 @@ class ConnectionPoolCommonIT : SFBaseTest { private readonly ConnectionPoolType _connectionPoolTypeUnderTest; private static readonly SFLogger s_logger = SFLoggerFactory.GetLogger(); - private static PoolConfig s_previousPoolConfig; + private readonly PoolConfig _previousPoolConfig; public ConnectionPoolCommonIT(ConnectionPoolType connectionPoolTypeUnderTest) { _connectionPoolTypeUnderTest = connectionPoolTypeUnderTest; - s_previousPoolConfig = new PoolConfig(); + _previousPoolConfig = new PoolConfig(); } [SetUp] @@ -44,7 +44,7 @@ public ConnectionPoolCommonIT(ConnectionPoolType connectionPoolTypeUnderTest) [TearDown] public new void AfterTest() { - s_previousPoolConfig.Reset(); + _previousPoolConfig.Reset(); } [OneTimeTearDown] diff --git a/Snowflake.Data.Tests/IntegrationTests/ConnectionSinglePoolCacheIT.cs b/Snowflake.Data.Tests/IntegrationTests/ConnectionSinglePoolCacheIT.cs index 15cf81b84..42365d926 100644 --- a/Snowflake.Data.Tests/IntegrationTests/ConnectionSinglePoolCacheIT.cs +++ b/Snowflake.Data.Tests/IntegrationTests/ConnectionSinglePoolCacheIT.cs @@ -10,7 +10,7 @@ namespace Snowflake.Data.Tests.IntegrationTests [NonParallelizable] public class ConnectionSinglePoolCacheIT: SFBaseTest { - private static readonly PoolConfig s_previousPoolConfig = new PoolConfig(); + private readonly PoolConfig _previousPoolConfig = new PoolConfig(); [SetUp] public new void BeforeTest() @@ -23,7 +23,7 @@ public class ConnectionSinglePoolCacheIT: SFBaseTest [TearDown] public new void AfterTest() { - s_previousPoolConfig.Reset(); + _previousPoolConfig.Reset(); } [OneTimeTearDown]