Limit sessions per user (#11370)

This commit is contained in:
Cody Robibero
2024-04-21 10:54:49 -06:00
committed by GitHub
parent 43569082f9
commit 27fae3dd04
2 changed files with 8 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ public class SessionControllerTests : IClassFixture<JellyfinApplicationFactory>
var client = _factory.CreateClient();
client.DefaultRequestHeaders.AddAuthHeader(_accessToken ??= await AuthHelper.CompleteStartupAsync(client));
using var response = await client.GetAsync($"Session/Sessions?userId={Guid.NewGuid()}");
using var response = await client.GetAsync($"Sessions?controllableByUserId={Guid.NewGuid()}");
Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
}
}