Skip to content

Commit

Permalink
SNOW-878067: Increase delta for timeout test
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-lf committed Oct 26, 2023
1 parent 9639f43 commit a441122
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit a441122

Please sign in to comment.