Skip to content

Commit

Permalink
Do not shorten delay by epsilon (test failures)
Browse files Browse the repository at this point in the history
  • Loading branch information
milang committed Jan 8, 2025
1 parent d3e7ce7 commit e93440b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public async Task cancelable_delay_must_call_next_interceptor_immediately_after_

var startedAt = DateTime.Now;
var task = delay.InterceptAsync(null);
await Task.Delay(delayDuration - epsilon);
await Task.Delay(delayDuration);

probe.WasCalled.Should().BeFalse();
cts.Cancel();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public async Task cancelable_delay_must_call_next_interceptor_immediately_after_

var startedAt = DateTime.Now;
var task = delay.InterceptAsync(null, null);
await Task.Delay(delayDuration - epsilon);
await Task.Delay(delayDuration);

probe.WasCalled.Should().BeFalse();
cts.Cancel();
Expand Down

0 comments on commit e93440b

Please sign in to comment.