diff --git a/Snowflake.Data.Tests/IntegrationTests/SFConnectionPoolIT.cs b/Snowflake.Data.Tests/IntegrationTests/SFConnectionPoolIT.cs index 7df31bc71..2a403521e 100644 --- a/Snowflake.Data.Tests/IntegrationTests/SFConnectionPoolIT.cs +++ b/Snowflake.Data.Tests/IntegrationTests/SFConnectionPoolIT.cs @@ -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());