diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2024-09-18 16:18:14 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2024-09-18 16:18:14 +0200 |
| commit | 5bfb7b5d1143f5bbf60d91f645f2bc78d4626016 (patch) | |
| tree | 32b31793d739f18a51c353e9d8b9924942a2c276 /tests/Jellyfin.Server.Integration.Tests/Controllers/SessionControllerTests.cs | |
| parent | ffa1c370fd4b92df15609cd3706b8ebcff930e0d (diff) | |
Remove invalid test
Diffstat (limited to 'tests/Jellyfin.Server.Integration.Tests/Controllers/SessionControllerTests.cs')
| -rw-r--r-- | tests/Jellyfin.Server.Integration.Tests/Controllers/SessionControllerTests.cs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/Jellyfin.Server.Integration.Tests/Controllers/SessionControllerTests.cs b/tests/Jellyfin.Server.Integration.Tests/Controllers/SessionControllerTests.cs deleted file mode 100644 index c267d3dd3..000000000 --- a/tests/Jellyfin.Server.Integration.Tests/Controllers/SessionControllerTests.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Net; -using System.Threading.Tasks; -using Xunit; - -namespace Jellyfin.Server.Integration.Tests.Controllers; - -public class SessionControllerTests : IClassFixture<JellyfinApplicationFactory> -{ - private readonly JellyfinApplicationFactory _factory; - private static string? _accessToken; - - public SessionControllerTests(JellyfinApplicationFactory factory) - { - _factory = factory; - } - - [Fact] - public async Task GetSessions_NonExistentUserId_NotFound() - { - var client = _factory.CreateClient(); - client.DefaultRequestHeaders.AddAuthHeader(_accessToken ??= await AuthHelper.CompleteStartupAsync(client)); - - using var response = await client.GetAsync($"Sessions?controllableByUserId={Guid.NewGuid()}"); - Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); - } -} |
