From 13fa45f0e69edddb58acf906e5fcde65ba5f4d0a Mon Sep 17 00:00:00 2001 From: sfc-gh-ext-simba-lf Date: Thu, 2 Nov 2023 20:23:45 -0700 Subject: [PATCH] SNOW-878067: Modify timeout test cases --- Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs b/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs index 9816f570c..4f192094b 100644 --- a/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs +++ b/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs @@ -1689,9 +1689,8 @@ public void TestCancelLoginBeforeTimeout() CancellationTokenSource connectionCancelToken = new CancellationTokenSource(); Task connectTask = conn.OpenAsync(connectionCancelToken.Token); - // Sleep for the default timeout minus 10 seconds (just before the actual timeout is reached) - // to make sure there are no false positive - Thread.Sleep((SFSessionHttpClientProperties.s_retryTimeoutDefault - 10) * 1000); + // Sleep for more than the default timeout to make sure there are no false positive) + Thread.Sleep((SFSessionHttpClientProperties.s_retryTimeoutDefault + 10) * 1000); Assert.AreEqual(ConnectionState.Connecting, conn.State);