Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 1 MS deplay to CleanUpDb to allow time for test{guid}.db to fully… #2941

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/Paramore.Brighter.Sqlite.Tests/SqliteTestHelper.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.Data.Sqlite;
using Paramore.Brighter.Inbox.Sqlite;
using Paramore.Brighter.Outbox.Sqlite;
Expand Down Expand Up @@ -49,10 +50,11 @@ private string GetUniqueTestDbPathAndCreateDir()
return Path.Combine(_connectionStringPathDir, $"test{guidInPath}.db");
}

public void CleanUpDb()
public async void CleanUpDb()
{
try
{
await Task.Delay(1);
File.Delete(_connectionStringPath);
Directory.Delete(_connectionStringPathDir, true);
}
Expand Down
Loading