Skip to content

Commit

Permalink
closing connections test
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-knozderko committed Apr 19, 2024
1 parent 4f0f1a3 commit 12b6bf0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Snowflake.Data.Tests/IntegrationTests/SFDbCommandIT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,14 @@ public void TestSimpleLargeResultSet()
}
}

[Test]
public void DummyTest()
{
var conn = new SnowflakeDbConnection(ConnectionString);
conn.Close();
conn.Close();
}

[Test, NonParallelizable]
public void TestUseV1ResultParser()
{
Expand All @@ -634,7 +642,6 @@ public void TestUseV1ResultParser()
// don't test the second column as it has random values just to increase the response size
counter++;
}
conn.Close();
}
SFConfiguration.Instance().ChunkParserVersion = chunkParserVersion;
SFConfiguration.Instance().ChunkDownloaderVersion = chunkDownloaderVersion;
Expand Down Expand Up @@ -664,7 +671,6 @@ public void TestUseV2ChunkDownloader()
// don't test the second column as it has random values just to increase the response size
counter++;
}
conn.Close();
}
SFConfiguration.Instance().ChunkParserVersion = chunkParserVersion;
SFConfiguration.Instance().ChunkDownloaderVersion = chunkDownloaderVersion;
Expand Down

0 comments on commit 12b6bf0

Please sign in to comment.