Skip to content

Commit

Permalink
temp-fix: Swallow exceptions in SmokeTests.DisposeAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdotnet committed Aug 16, 2024
1 parent 02c5ba7 commit 208ddaa
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/LinkDotNet.Blog.IntegrationTests/SmokeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,16 @@ public async Task ShouldAllowDotsForFreeTextSearch()

public async ValueTask DisposeAsync()
{
if (factory != null)
if (factory is not null)
{
await factory.DisposeAsync();
try
{
await factory.DisposeAsync();
}
catch
{
// TODO: NCronJob sometimes throws an exception here
}
}
}
}

0 comments on commit 208ddaa

Please sign in to comment.