Skip to content

Commit

Permalink
Fix failures on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mhofman committed Feb 20, 2024
1 parent 1a7d139 commit cf51ef3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ public void TestLoginTimeoutWithRetryTimeoutLesserThanConnectionTimeout()
// Jitter can cause the request to reach max number of retries before reaching the timeout
Assert.IsTrue(e.InnerException is TaskCanceledException ||
SFError.REQUEST_TIMEOUT.GetAttribute<SFErrorAttr>().errorCode ==
// czemu to failuje?
((SnowflakeDbException)e.InnerException).ErrorCode);
}
stopwatch.Stop();
Expand Down Expand Up @@ -1841,7 +1842,7 @@ public void TestAsyncLoginTimeout()
{
using (var conn = new MockSnowflakeDbConnection())
{
int timeoutSec = 5;
int timeoutSec = 15;
string loginTimeOut5sec = String.Format(ConnectionString + "connection_timeout={0};maxHttpRetries=0",
timeoutSec);
conn.ConnectionString = loginTimeOut5sec;
Expand Down Expand Up @@ -1951,7 +1952,7 @@ public void TestAsyncConnectionFailFast()
using (var conn = new SnowflakeDbConnection())
{
// Just a way to get a 404 on the login request and make sure there are no retry
string invalidConnectionString = "host=learn.microsoft.com;"
string invalidConnectionString = "host=learn.microsoft.com/force404;"
+ "connection_timeout=0;account=testFailFast;user=testFailFast;password=testFailFast;";

conn.ConnectionString = invalidConnectionString;
Expand Down

0 comments on commit cf51ef3

Please sign in to comment.