Skip to content

Commit

Permalink
fix: Wrong disposal of element
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdotnet committed Jun 27, 2024
1 parent 291fd74 commit 2180b26
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions tests/LinkDotNet.Blog.IntegrationTests/SmokeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace LinkDotNet.Blog.IntegrationTests;

public sealed class SmokeTests : IClassFixture<WebApplicationFactory<Program>>, IDisposable, IAsyncDisposable
public sealed class SmokeTests : IClassFixture<WebApplicationFactory<Program>>
{
private readonly WebApplicationFactory<Program> factory;

Expand Down Expand Up @@ -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();
}

0 comments on commit 2180b26

Please sign in to comment.