From fdda05709802d111dd41c1443b43aa56431d2576 Mon Sep 17 00:00:00 2001 From: Benjamin Hugot Date: Tue, 6 Dec 2022 10:59:41 +0100 Subject: [PATCH] Fix reliatibility test --- .../ManualTests/SQL/RetryLogic/SqlCommandReliabilityTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/RetryLogic/SqlCommandReliabilityTest.cs b/src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/RetryLogic/SqlCommandReliabilityTest.cs index 9e3ed81af4..9f95c1a360 100644 --- a/src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/RetryLogic/SqlCommandReliabilityTest.cs +++ b/src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/RetryLogic/SqlCommandReliabilityTest.cs @@ -264,7 +264,7 @@ public void DropDatabaseWithActiveConnection(string cnnString, SqlRetryLogicBase cnn2.Open(); cnn3.Open(); - // kill the active connection to the database after the first faliure. + // kill the active connection to the database after the first failure. provider.Retrying += (s, e) => { currentRetries = e.RetryCount; @@ -274,7 +274,7 @@ public void DropDatabaseWithActiveConnection(string cnnString, SqlRetryLogicBase using (var cmd3 = cnn3.CreateCommand()) { cmd3.CommandText = $"KILL {cnn2.ServerProcessId}"; - cmd3.ExecuteNonQueryAsync(); + cmd3.ExecuteNonQuery(); } cnn2.Close(); }