mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Fixed out of order unittests
This commit is contained in:
parent
dfbbbf023d
commit
fb88d48374
@ -62,12 +62,23 @@ public sealed class LibraryStructureControllerTests : IClassFixture<JellyfinAppl
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
[Priority(0)]
|
[Priority(-2)]
|
||||||
public async Task UpdateLibraryOptions_Valid_Success()
|
public async Task UpdateLibraryOptions_Valid_Success()
|
||||||
{
|
{
|
||||||
var client = _factory.CreateClient();
|
var client = _factory.CreateClient();
|
||||||
client.DefaultRequestHeaders.AddAuthHeader(_accessToken ??= await AuthHelper.CompleteStartupAsync(client));
|
client.DefaultRequestHeaders.AddAuthHeader(_accessToken ??= await AuthHelper.CompleteStartupAsync(client));
|
||||||
|
|
||||||
|
var createBody = new AddVirtualFolderDto()
|
||||||
|
{
|
||||||
|
LibraryOptions = new LibraryOptions()
|
||||||
|
{
|
||||||
|
Enabled = false
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
using var createResponse = await client.PostAsJsonAsync("Library/VirtualFolders?name=test&refreshLibrary=true", createBody, _jsonOptions);
|
||||||
|
Assert.Equal(HttpStatusCode.NoContent, createResponse.StatusCode);
|
||||||
|
|
||||||
using var response = await client.GetAsync("Library/VirtualFolders");
|
using var response = await client.GetAsync("Library/VirtualFolders");
|
||||||
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
|
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user