Skip to content

Commit d416a40

Browse files
author
Jos Hickson
committed
Moved to using real time for work scheduler tests as trying to be more deterministic was too flaky.
1 parent a2888f0 commit d416a40

3 files changed

Lines changed: 86 additions & 235 deletions

File tree

Winton.Extensions.Threading.Actor.Tests.Unit/Internal/ActorTaskSchedulerTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ await Launch(x =>
266266
[Fact]
267267
public void ShouldYieldCurrentThreadAndRerequestFromThreadPoolIfHaveProcessedNonLongRunningTasksContinuouslyForMoreThanAGivenTimePeriod()
268268
{
269-
var fixableUtcTimeSource = new FixableTimeSource();
270269
_scheduler = new ActorTaskScheduler(_actorId, Mock.Get(_workItemQueuer).Object, _actorTaskFactory);
271270

272271
var taskStartBarrier = new TaskCompletionSource<bool>();
@@ -281,7 +280,6 @@ public void ShouldYieldCurrentThreadAndRerequestFromThreadPoolIfHaveProcessedNon
281280
task1.Start(_scheduler);
282281
task2.Start(_scheduler);
283282
ThrowIfWaitTimesOut(taskStartBarrier.Task);
284-
fixableUtcTimeSource.Increment(TimeSpan.FromMilliseconds(250));
285283
barrier.SetResult(true);
286284

287285
task2.AwaitingShouldCompleteIn(_waitTimeout);

0 commit comments

Comments
 (0)