Skip to content

Commit

Permalink
SNOW-902611 bugfixe for async close failures
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mhofman committed Oct 6, 2023
1 parent f53ae8b commit e1a14f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<SFConnectionIT>();
Expand All @@ -28,6 +28,7 @@ public void TestBasicConnection()
{
using (IDbConnection conn = new SnowflakeDbConnection())
{
bool pooling = SnowflakeDbConnectionPool.GetPooling();
SnowflakeDbConnectionPool.SetPooling(false);
conn.ConnectionString = ConnectionString;
conn.Open();
Expand All @@ -46,6 +47,7 @@ public void TestBasicConnection()

conn.Close();
Assert.AreEqual(ConnectionState.Closed, conn.State);
SnowflakeDbConnectionPool.SetPooling(pooling);
}
}

Expand Down

0 comments on commit e1a14f5

Please sign in to comment.