Skip to content

Commit

Permalink
SNOW-878067: Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-lf committed Nov 3, 2023
1 parent 98f0abe commit b25afec
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,7 +402,7 @@ public void TestLoginTimeout()
stopwatch.Stop();
int delta = 10; // in case server time slower.

// Should timeout before the defined timeout plus 1 (max backoff after timeout)
// Should timeout before the defined timeout plus 1 (buffer time)
Assert.LessOrEqual(stopwatch.ElapsedMilliseconds, (timeoutSec + 1) * 1000);
// Should timeout after the minimum possible timeout with jitter
Assert.GreaterOrEqual(stopwatch.ElapsedMilliseconds, 1 * 1000 - delta);
Expand Down Expand Up @@ -1748,7 +1748,7 @@ public void TestAsyncLoginTimeout()

// Should timeout after the minimum possible timeout with jitter
Assert.GreaterOrEqual(stopwatch.ElapsedMilliseconds, 1 * 1000 - delta);
// But never more than 1 sec (max backoff) after the defined timeout
// But never more than 1 sec (buffer time) after the defined timeout
Assert.LessOrEqual(stopwatch.ElapsedMilliseconds, (timeoutSec + 1) * 1000);

Assert.AreEqual(ConnectionState.Closed, conn.State);
Expand Down

0 comments on commit b25afec

Please sign in to comment.