Skip to content

Commit

Permalink
add delay to ensure empty queue between tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martyn-w committed Jul 3, 2024
1 parent 85544a0 commit 3201440
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GetIntoTeachingApiTests/Contracts/BaseTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ protected async Task Setup()
{
await FlushState();
await SeedDatabase();

// add delay to allow for the queue to empty between tests
await Task.Delay(3000);
}

protected async Task AssertRequestMatchesSnapshot(string scenario)
Expand Down

0 comments on commit 3201440

Please sign in to comment.