Update TransactionIntegrationTests to use unique channel identifiers for deletion tests
Modified the channel creation in the DeleteShow tests to generate unique identifiers using GUIDs, ensuring test isolation and preventing potential conflicts. This change enhances the reliability of the integration tests related to show deletion functionality.
This commit is contained in:
@@ -121,7 +121,7 @@ public sealed class TransactionIntegrationTests(PostgresFixture fixture)
|
|||||||
[SkippableFact]
|
[SkippableFact]
|
||||||
public async Task DeleteShow_WithSchedule_CutsFutureEntries()
|
public async Task DeleteShow_WithSchedule_CutsFutureEntries()
|
||||||
{
|
{
|
||||||
var channel = Channel.Create("Канал", "kanal", DateTimeOffset.UnixEpoch);
|
var channel = Channel.Create("Канал", $"cut-{Guid.NewGuid():N}", DateTimeOffset.UnixEpoch);
|
||||||
var show = Show.Create("Шоу", ShowKind.Single);
|
var show = Show.Create("Шоу", ShowKind.Single);
|
||||||
var asset = MediaAsset.Register("live.mkv", ".mkv", MediaSource.Upload);
|
var asset = MediaAsset.Register("live.mkv", ".mkv", MediaSource.Upload);
|
||||||
show.AddEpisode(asset.Id);
|
show.AddEpisode(asset.Id);
|
||||||
@@ -181,7 +181,7 @@ public sealed class TransactionIntegrationTests(PostgresFixture fixture)
|
|||||||
[SkippableFact]
|
[SkippableFact]
|
||||||
public async Task DeleteShow_WithMedia_RemovesEverything()
|
public async Task DeleteShow_WithMedia_RemovesEverything()
|
||||||
{
|
{
|
||||||
var channel = Channel.Create("Канал", "kanal", DateTimeOffset.UnixEpoch);
|
var channel = Channel.Create("Канал", $"del-{Guid.NewGuid():N}", DateTimeOffset.UnixEpoch);
|
||||||
var show = Show.Create("Шоу", ShowKind.Single);
|
var show = Show.Create("Шоу", ShowKind.Single);
|
||||||
var asset = MediaAsset.Register("movie.mkv", ".mkv", MediaSource.Upload);
|
var asset = MediaAsset.Register("movie.mkv", ".mkv", MediaSource.Upload);
|
||||||
show.AddEpisode(asset.Id);
|
show.AddEpisode(asset.Id);
|
||||||
|
|||||||
Reference in New Issue
Block a user