diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-07-11 22:06:01 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-07-11 22:06:01 +0200 |
| commit | 8b1a211081d2f6847b34fdaef3e990058e0699a9 (patch) | |
| tree | 7d67f91d2d38313be0b39844bbd8300a729ef85d /tests/Jellyfin.Server.Integration.Tests/Controllers/MediaInfoControllerTests.cs | |
| parent | abbcf5e4f7f4dff2ce75a8f767b7b316a42a4a84 (diff) | |
MediaInfoControllerTests: Check Content-Length
Diffstat (limited to 'tests/Jellyfin.Server.Integration.Tests/Controllers/MediaInfoControllerTests.cs')
| -rw-r--r-- | tests/Jellyfin.Server.Integration.Tests/Controllers/MediaInfoControllerTests.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Jellyfin.Server.Integration.Tests/Controllers/MediaInfoControllerTests.cs b/tests/Jellyfin.Server.Integration.Tests/Controllers/MediaInfoControllerTests.cs index abf03d658..34d26680a 100644 --- a/tests/Jellyfin.Server.Integration.Tests/Controllers/MediaInfoControllerTests.cs +++ b/tests/Jellyfin.Server.Integration.Tests/Controllers/MediaInfoControllerTests.cs @@ -26,6 +26,7 @@ namespace Jellyfin.Server.Integration.Tests.Controllers Assert.Equal(HttpStatusCode.OK, response.StatusCode); Assert.Equal(MediaTypeNames.Application.Octet, response.Content.Headers.ContentType?.MediaType); + Assert.NotNull(response.Content.Headers.ContentLength); } [Theory] @@ -39,6 +40,8 @@ namespace Jellyfin.Server.Integration.Tests.Controllers Assert.Equal(HttpStatusCode.OK, response.StatusCode); 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] |
