aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Server.Integration.Tests/Controllers/LiveTvControllerTests.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2026-04-24 18:59:31 +0200
committerGitHub <noreply@github.com>2026-04-24 18:59:31 +0200
commitb1e2419c6593a3aa4c8df3778831a3214ae5a1c0 (patch)
treedca406a67b95ba04480f3b838ed0607a2ea42d96 /tests/Jellyfin.Server.Integration.Tests/Controllers/LiveTvControllerTests.cs
parent3c9346594024ca891231195d6784b27b0513fe19 (diff)
parentbd70e0ca343c334c03140e66f6c4b9df384187b7 (diff)
Merge pull request #16666 from Shadowghost/xunit3
Upgrade to xunit v3
Diffstat (limited to 'tests/Jellyfin.Server.Integration.Tests/Controllers/LiveTvControllerTests.cs')
-rw-r--r--tests/Jellyfin.Server.Integration.Tests/Controllers/LiveTvControllerTests.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/Jellyfin.Server.Integration.Tests/Controllers/LiveTvControllerTests.cs b/tests/Jellyfin.Server.Integration.Tests/Controllers/LiveTvControllerTests.cs
index dd971fa87b..8ca9fb899e 100644
--- a/tests/Jellyfin.Server.Integration.Tests/Controllers/LiveTvControllerTests.cs
+++ b/tests/Jellyfin.Server.Integration.Tests/Controllers/LiveTvControllerTests.cs
@@ -32,7 +32,7 @@ public sealed class LiveTvControllerTests : IClassFixture<JellyfinApplicationFac
Url = "Test Data/dummy.m3u8"
};
- var response = await client.PostAsJsonAsync("/LiveTv/TunerHosts", body, _jsonOptions);
+ var response = await client.PostAsJsonAsync("/LiveTv/TunerHosts", body, _jsonOptions, TestContext.Current.CancellationToken);
Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
}
@@ -49,12 +49,12 @@ public sealed class LiveTvControllerTests : IClassFixture<JellyfinApplicationFac
Url = "Test Data/dummy.m3u8"
};
- var response = await client.PostAsJsonAsync("/LiveTv/TunerHosts", body, _jsonOptions);
+ var response = await client.PostAsJsonAsync("/LiveTv/TunerHosts", body, _jsonOptions, TestContext.Current.CancellationToken);
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Assert.Equal(MediaTypeNames.Application.Json, response.Content.Headers.ContentType?.MediaType);
Assert.Equal(Encoding.UTF8.BodyName, response.Content.Headers.ContentType?.CharSet);
- var responseBody = await response.Content.ReadFromJsonAsync<TunerHostInfo>();
+ var responseBody = await response.Content.ReadFromJsonAsync<TunerHostInfo>(TestContext.Current.CancellationToken);
Assert.NotNull(responseBody);
Assert.Equal(body.Type, responseBody.Type);
Assert.Equal(body.Url, responseBody.Url);
@@ -72,7 +72,7 @@ public sealed class LiveTvControllerTests : IClassFixture<JellyfinApplicationFac
Url = "Test Data/dummy.m3u8"
};
- var response = await client.PostAsJsonAsync("/LiveTv/TunerHosts", body, _jsonOptions);
+ var response = await client.PostAsJsonAsync("/LiveTv/TunerHosts", body, _jsonOptions, TestContext.Current.CancellationToken);
Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
}
@@ -89,7 +89,7 @@ public sealed class LiveTvControllerTests : IClassFixture<JellyfinApplicationFac
Url = "thisgoesnowhere"
};
- var response = await client.PostAsJsonAsync("/LiveTv/TunerHosts", body, _jsonOptions);
+ var response = await client.PostAsJsonAsync("/LiveTv/TunerHosts", body, _jsonOptions, TestContext.Current.CancellationToken);
Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
}