Skip to content

Commit

Permalink
Update test assert to be more lenient
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsmith committed Sep 27, 2024
1 parent d17cfcd commit cfa1c0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Foundatio.TestHarness/Queue/QueueTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ await queue.EnqueueAsync(new SimpleWorkItem
var elapsed = DateTime.UtcNow.Subtract(startTime);
if (_logger.IsEnabled(LogLevel.Trace)) _logger.LogTrace("Time {Elapsed}", elapsed);
Assert.NotNull(workItem);
Assert.InRange(elapsed, TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(10));
Assert.InRange(elapsed, TimeSpan.FromMilliseconds(900), TimeSpan.FromSeconds(10));
await workItem.CompleteAsync();

if (_assertStats)
Expand Down

0 comments on commit cfa1c0f

Please sign in to comment.