Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Spatison committed Sep 3, 2024
1 parent 434cc32 commit 31387af
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,8 @@ protected async Task AwaitDoAfters(bool shouldSucceed = true, int maxExpected =
/// Cancel any currently active DoAfters. Default arguments are such that it also checks that there is at least one
/// active DoAfter to cancel.
/// </summary>
protected async Task CancelDoAfters(int minExpected = 1, int maxExpected = 1)
protected async Task CancelDoAfters(int minExpected = 0, int maxExpected = 1)
{
if (!ActiveDoAfters.Any()) // WD EDIT
return;

Assert.That(ActiveDoAfters.Count(), Is.GreaterThanOrEqualTo(minExpected));
Assert.That(ActiveDoAfters.Count(), Is.LessThanOrEqualTo(maxExpected));

Expand Down

0 comments on commit 31387af

Please sign in to comment.