From 22871b59d978c7f4719ee6109d0bded837b27aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Hofman?= Date: Wed, 21 Feb 2024 20:21:20 +0100 Subject: [PATCH] SNOW-950923 Flaky test fix (#870) ### Description Timeout delta increased to verify Login Request Timeout falls into expected range. ### Checklist - [x] Code compiles correctly - [x] Code is formatted according to [Coding Conventions](../CodingConventions.md) - [x] Created tests which fail without the change (if possible) - [x] All tests passing (`dotnet test`) - [x] Extended the README / documentation, if necessary - [x] Provide JIRA issue id (if possible) or GitHub issue id in PR name --- Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs b/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs index f84447000..c8c250ed4 100644 --- a/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs +++ b/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs @@ -401,7 +401,7 @@ public void TestLoginTimeout() ((SnowflakeDbException)e.InnerException).ErrorCode); } stopwatch.Stop(); - int delta = 10; // in case server time slower. + int delta = 15; // in case server time slower. // Should timeout before the defined timeout plus 1 (buffer time) Assert.LessOrEqual(stopwatch.ElapsedMilliseconds, (timeoutSec + 1) * 1000);