Skip to content

Commit

Permalink
SNOW-878067: Modify timeout test cases
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 b25afec commit 13fa45f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 13fa45f

Please sign in to comment.