Skip to content

Commit

Permalink
SNOW-950923 fixed typo in refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mhofman committed Feb 21, 2024
1 parent 3cbf4a3 commit 9297cff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ public void TestDefaultLoginTimeout()
{
if (e.InnerException is SnowflakeDbException)
{
SnowflakeDbExceptionAssert.HasErrorCode(e.InnerException, SFError.INTERNAL_ERROR);
SnowflakeDbExceptionAssert.HasErrorCode(e.InnerException, SFError.REQUEST_TIMEOUT);

stopwatch.Stop();
int delta = 10; // in case server time slower.
Expand Down Expand Up @@ -803,7 +803,7 @@ public void TestUnknownAuthenticator()
}
catch (SnowflakeDbException e)
{
SnowflakeDbExceptionAssert.HasErrorCode(e.InnerException, SFError.UNKNOWN_AUTHENTICATOR);
SnowflakeDbExceptionAssert.HasErrorCode(e, SFError.UNKNOWN_AUTHENTICATOR);
}

}
Expand Down Expand Up @@ -858,7 +858,7 @@ public void TestOktaConnectionUntilMaxTimeout()
catch (Exception e)
{
Assert.IsInstanceOf<SnowflakeDbException>(e);
SnowflakeDbExceptionAssert.HasErrorCode(e.InnerException, SFError.INTERNAL_ERROR);
SnowflakeDbExceptionAssert.HasErrorCode(e, SFError.INTERNAL_ERROR);
Assert.IsTrue(e.Message.Contains(
$"The retry count has reached its limit of {expectedMaxRetryCount} and " +
$"the timeout elapsed has reached its limit of {expectedMaxConnectionTimeout} " +
Expand Down

0 comments on commit 9297cff

Please sign in to comment.