Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-knozderko committed Dec 13, 2023
1 parent 4597097 commit 6be094a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Snowflake.Data.Tests/IntegrationTests/SFConnectionPoolIT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,12 @@ public void TestCloseSessionAfterTimeout()
var session = conn1.SfSession;
conn1.Close();
Assert.IsTrue(session.IsEstablished());
Thread.Sleep(SessionTimeoutSeconds * 1000);
Thread.Sleep(SessionTimeoutSeconds * 1000); // wait until the session is expired
var conn2 = new SnowflakeDbConnection(ConnectionString);

// act
conn2.Open(); // it gets a session from the caching pool firstly closing session of conn1 in background
Thread.Sleep(TimeForBackgroundSessionCloseMillis);
Thread.Sleep(TimeForBackgroundSessionCloseMillis); // wait for closing expired session

// assert
Assert.IsFalse(session.IsEstablished());
Expand Down

0 comments on commit 6be094a

Please sign in to comment.