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 3d90e7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/*
* Copyright (c) 2012-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
*/

using System.Data.Common;
using Snowflake.Data.Tests.Util;

namespace Snowflake.Data.Tests.IntegrationTests
{
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 @@ -1966,8 +1967,7 @@ public void TestAsyncConnectionFailFast()
}
catch (AggregateException e)
{
Assert.AreEqual(SFError.INTERNAL_ERROR.GetAttribute<SFErrorAttr>().errorCode,
((SnowflakeDbException)e.InnerException).ErrorCode);
SnowflakeDbExceptionAssert.HasErrorCode((SnowflakeDbException)e.InnerException, SFError.INTERNAL_ERROR);
}

Assert.AreEqual(ConnectionState.Closed, conn.State);
Expand Down
4 changes: 2 additions & 2 deletions Snowflake.Data/Core/SFStatement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ internal SFBaseResultSet Execute(int timeout, string sql, Dictionary<string, Bin
}
}

internal SFBaseResultSet ExecuteSqlWithPutGet(int timeout, string sql, Dictionary<string, BindingDTO> bindings, bool describeOnly)
private SFBaseResultSet ExecuteSqlWithPutGet(int timeout, string sql, Dictionary<string, BindingDTO> bindings, bool describeOnly)
{
try
{
Expand Down Expand Up @@ -398,7 +398,7 @@ internal SFBaseResultSet ExecuteSqlWithPutGet(int timeout, string sql, Dictionar
}
}

internal SFBaseResultSet ExecuteSqlOtherThanPutGet(int timeout, string sql, Dictionary<string, BindingDTO> bindings, bool describeOnly)
private SFBaseResultSet ExecuteSqlOtherThanPutGet(int timeout, string sql, Dictionary<string, BindingDTO> bindings, bool describeOnly)
{
try
{
Expand Down

0 comments on commit 3d90e7f

Please sign in to comment.