From a4411228b28c10c38477719d366b6cf5f50f0c8d Mon Sep 17 00:00:00 2001 From: sfc-gh-ext-simba-lf Date: Thu, 26 Oct 2023 16:57:01 -0700 Subject: [PATCH] SNOW-878067: Increase delta for timeout test --- Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs b/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs index ee58ee260..a8ba78e50 100644 --- a/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs +++ b/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs @@ -402,12 +402,12 @@ public void TestLoginTimeout() ((SnowflakeDbException)e.InnerException).ErrorCode); } stopwatch.Stop(); - int detla = 10; //in case server time slower. + int delta = 100; // in case server time slower. // Should timeout after the minimum possible timeout with jitter: 14 seconds (50% of 4 * 2) after 7 retries Assert.GreaterOrEqual(stopwatch.ElapsedMilliseconds, 14 * 1000); // Should timeout before the defined connection timeout - Assert.LessOrEqual(stopwatch.ElapsedMilliseconds, timeoutSec * 1000 + detla); + Assert.LessOrEqual(stopwatch.ElapsedMilliseconds, timeoutSec * 1000 + delta); Assert.AreEqual(timeoutSec, conn.ConnectionTimeout); } }