aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Server.Integration.Tests/Controllers/LibraryStructureControllerTests.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2024-11-14 09:04:35 +0000
committerJPVenson <github@jpb.email>2024-11-14 09:04:35 +0000
commit056dcf7e81049a9d92064d5f91dadfbcf9093a63 (patch)
tree080892949e26f7cac59bd0d22c13044439611874 /tests/Jellyfin.Server.Integration.Tests/Controllers/LibraryStructureControllerTests.cs
parent5f2be93e1900c641a334a28bb73a4aed70ee760b (diff)
Added Pipeline debug code
Diffstat (limited to 'tests/Jellyfin.Server.Integration.Tests/Controllers/LibraryStructureControllerTests.cs')
-rw-r--r--tests/Jellyfin.Server.Integration.Tests/Controllers/LibraryStructureControllerTests.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/Jellyfin.Server.Integration.Tests/Controllers/LibraryStructureControllerTests.cs b/tests/Jellyfin.Server.Integration.Tests/Controllers/LibraryStructureControllerTests.cs
index 0376f57cc..9d39b4bfa 100644
--- a/tests/Jellyfin.Server.Integration.Tests/Controllers/LibraryStructureControllerTests.cs
+++ b/tests/Jellyfin.Server.Integration.Tests/Controllers/LibraryStructureControllerTests.cs
@@ -120,6 +120,14 @@ public sealed class LibraryStructureControllerTests : IClassFixture<JellyfinAppl
client.DefaultRequestHeaders.AddAuthHeader(_accessToken ??= await AuthHelper.CompleteStartupAsync(client));
using var response = await client.DeleteAsync("Library/VirtualFolders?name=test&refreshLibrary=true");
- Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
+ try
+ {
+ Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
+ }
+ catch (Exception)
+ {
+ Console.WriteLine("DeleteFailed: " + response.Content.ReadAsStringAsync());
+ throw;
+ }
}
}