mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-02 21:24:15 -04:00
MediaInfoControllerTests: Check Content-Length
This commit is contained in:
parent
abbcf5e4f7
commit
8b1a211081
@ -26,6 +26,7 @@ namespace Jellyfin.Server.Integration.Tests.Controllers
|
|||||||
|
|
||||||
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
|
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
|
||||||
Assert.Equal(MediaTypeNames.Application.Octet, response.Content.Headers.ContentType?.MediaType);
|
Assert.Equal(MediaTypeNames.Application.Octet, response.Content.Headers.ContentType?.MediaType);
|
||||||
|
Assert.NotNull(response.Content.Headers.ContentLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Theory]
|
[Theory]
|
||||||
@ -39,6 +40,8 @@ namespace Jellyfin.Server.Integration.Tests.Controllers
|
|||||||
|
|
||||||
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
|
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
|
||||||
Assert.Equal(MediaTypeNames.Application.Octet, response.Content.Headers.ContentType?.MediaType);
|
Assert.Equal(MediaTypeNames.Application.Octet, response.Content.Headers.ContentType?.MediaType);
|
||||||
|
Assert.NotNull(response.Content.Headers.ContentLength);
|
||||||
|
Assert.InRange(response.Content.Headers.ContentLength!.Value, size, long.MaxValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Theory]
|
[Theory]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user