From 9297cff88964021e7227f567b6fa0b1a06b2d61c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Hofman?= Date: Wed, 21 Feb 2024 17:08:28 +0100 Subject: [PATCH] SNOW-950923 fixed typo in refactor --- Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs b/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs index fe29d8237..f84447000 100644 --- a/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs +++ b/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs @@ -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. @@ -803,7 +803,7 @@ public void TestUnknownAuthenticator() } catch (SnowflakeDbException e) { - SnowflakeDbExceptionAssert.HasErrorCode(e.InnerException, SFError.UNKNOWN_AUTHENTICATOR); + SnowflakeDbExceptionAssert.HasErrorCode(e, SFError.UNKNOWN_AUTHENTICATOR); } } @@ -858,7 +858,7 @@ public void TestOktaConnectionUntilMaxTimeout() catch (Exception e) { Assert.IsInstanceOf(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} " +