Skip to content

Commit e93440b

Browse files
committed
Do not shorten delay by epsilon (test failures)
1 parent d3e7ce7 commit e93440b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/Akka.Persistence.TestKit.Tests/JournalInterceptorsSpecs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public async Task cancelable_delay_must_call_next_interceptor_immediately_after_
7373

7474
var startedAt = DateTime.Now;
7575
var task = delay.InterceptAsync(null);
76-
await Task.Delay(delayDuration - epsilon);
76+
await Task.Delay(delayDuration);
7777

7878
probe.WasCalled.Should().BeFalse();
7979
cts.Cancel();

src/core/Akka.Persistence.TestKit.Tests/SnapshotStoreInterceptorsSpec.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public async Task cancelable_delay_must_call_next_interceptor_immediately_after_
6363

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

6868
probe.WasCalled.Should().BeFalse();
6969
cts.Cancel();

0 commit comments

Comments
 (0)