From 2180b26663563f3b9653fbc40cea172482796fca Mon Sep 17 00:00:00 2001 From: Steven Giesel Date: Thu, 27 Jun 2024 09:22:48 +0200 Subject: [PATCH] fix: Wrong disposal of element --- tests/LinkDotNet.Blog.IntegrationTests/SmokeTests.cs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/tests/LinkDotNet.Blog.IntegrationTests/SmokeTests.cs b/tests/LinkDotNet.Blog.IntegrationTests/SmokeTests.cs index cecfb39d..0acab172 100644 --- a/tests/LinkDotNet.Blog.IntegrationTests/SmokeTests.cs +++ b/tests/LinkDotNet.Blog.IntegrationTests/SmokeTests.cs @@ -6,7 +6,7 @@ namespace LinkDotNet.Blog.IntegrationTests; -public sealed class SmokeTests : IClassFixture>, IDisposable, IAsyncDisposable +public sealed class SmokeTests : IClassFixture> { private readonly WebApplicationFactory factory; @@ -61,14 +61,4 @@ public async Task ShouldAllowDotsForFreeTextSearch() result.IsSuccessStatusCode.Should().BeTrue(); } - - public async ValueTask DisposeAsync() - { - if (factory is not null) - { - await factory.DisposeAsync(); - } - } - - public void Dispose() => factory?.Dispose(); } \ No newline at end of file