From 711e2306e04d90813729689c08591baecbc6a631 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Tue, 7 Jul 2020 15:02:53 +0200 Subject: [PATCH] Cleanup Signed-off-by: Bjarke Berg --- .../TestServerTest/Controllers/UsersControllerTests.cs | 8 -------- .../Testing/LocalDbTestDatabase.cs | 3 +-- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/Umbraco.Tests.Integration/TestServerTest/Controllers/UsersControllerTests.cs b/src/Umbraco.Tests.Integration/TestServerTest/Controllers/UsersControllerTests.cs index 4c492ed4f2..e2d66373ec 100644 --- a/src/Umbraco.Tests.Integration/TestServerTest/Controllers/UsersControllerTests.cs +++ b/src/Umbraco.Tests.Integration/TestServerTest/Controllers/UsersControllerTests.cs @@ -208,14 +208,6 @@ namespace Umbraco.Tests.Integration.TestServerTest.Controllers [Test] public async Task PostUnlockUsers_When_Multiple_UserIds_Supplied_Expect_User_Locked_Out_With_Correct_Response_Message() { - - var xxx = new UserBuilder() - .WithUsername("Admin") - .AddUserGroup() - .WithAlias("writer") - .Done() - .Build(); - var numberOfUsers = 3; var userService = GetRequiredService(); diff --git a/src/Umbraco.Tests.Integration/Testing/LocalDbTestDatabase.cs b/src/Umbraco.Tests.Integration/Testing/LocalDbTestDatabase.cs index 62d6db0a8b..9988362d3b 100644 --- a/src/Umbraco.Tests.Integration/Testing/LocalDbTestDatabase.cs +++ b/src/Umbraco.Tests.Integration/Testing/LocalDbTestDatabase.cs @@ -237,7 +237,7 @@ namespace Umbraco.Tests.Integration.Testing action(); return; } - catch (Exception e) + catch (SqlException e) { Console.Error.WriteLine($"SqlException occured, but we try again {i+1}/{maxIterations}.\n{e}"); @@ -249,7 +249,6 @@ namespace Umbraco.Tests.Integration.Testing Debugger.Launch(); throw; } - } } }