Skip to content

Commit

Permalink
fix resetting the previous pool settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-knozderko committed Nov 20, 2023
1 parent 7b97780 commit 569c696
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -23,7 +23,7 @@ public class ConnectionMultiplePoolsIT: SFBaseTest
[TearDown]
public new void AfterTest()
{
s_previousPoolConfig.Reset();
_previousPoolConfig.Reset();
}

[OneTimeTearDown]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ class ConnectionPoolCommonIT : SFBaseTest
{
private readonly ConnectionPoolType _connectionPoolTypeUnderTest;
private static readonly SFLogger s_logger = SFLoggerFactory.GetLogger<ConnectionPoolManager>();
private static PoolConfig s_previousPoolConfig;
private readonly PoolConfig _previousPoolConfig;

public ConnectionPoolCommonIT(ConnectionPoolType connectionPoolTypeUnderTest)
{
_connectionPoolTypeUnderTest = connectionPoolTypeUnderTest;
s_previousPoolConfig = new PoolConfig();
_previousPoolConfig = new PoolConfig();
}

[SetUp]
Expand All @@ -44,7 +44,7 @@ public ConnectionPoolCommonIT(ConnectionPoolType connectionPoolTypeUnderTest)
[TearDown]
public new void AfterTest()
{
s_previousPoolConfig.Reset();
_previousPoolConfig.Reset();
}

[OneTimeTearDown]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -23,7 +23,7 @@ public class ConnectionSinglePoolCacheIT: SFBaseTest
[TearDown]
public new void AfterTest()
{
s_previousPoolConfig.Reset();
_previousPoolConfig.Reset();
}

[OneTimeTearDown]
Expand Down

0 comments on commit 569c696

Please sign in to comment.