From 30a38d163c5569cd1629cf65a0fd17d8993eb390 Mon Sep 17 00:00:00 2001 From: Leonid Pershin Date: Tue, 28 Jul 2026 12:26:12 +0300 Subject: [PATCH] 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. --- .../TeleWave.Integration.Tests/TransactionIntegrationTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/tests/TeleWave.Integration.Tests/TransactionIntegrationTests.cs b/backend/tests/TeleWave.Integration.Tests/TransactionIntegrationTests.cs index dd5abd9..90aac92 100644 --- a/backend/tests/TeleWave.Integration.Tests/TransactionIntegrationTests.cs +++ b/backend/tests/TeleWave.Integration.Tests/TransactionIntegrationTests.cs @@ -121,7 +121,7 @@ public sealed class TransactionIntegrationTests(PostgresFixture fixture) [SkippableFact] 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 asset = MediaAsset.Register("live.mkv", ".mkv", MediaSource.Upload); show.AddEpisode(asset.Id); @@ -181,7 +181,7 @@ public sealed class TransactionIntegrationTests(PostgresFixture fixture) [SkippableFact] 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 asset = MediaAsset.Register("movie.mkv", ".mkv", MediaSource.Upload); show.AddEpisode(asset.Id);