Skip to content

Commit 3d909d2

Browse files
author
Jos Hickson
authored
Attempted fix for spurious test failures
1 parent 583f3d1 commit 3d909d2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ public void ShouldBeAbleToConfigureScheduleToRescheduleInCaseOfUnexpectedErrorBu
269269
case WorkType.Async:
270270
task = _scheduler.Schedule(async () =>
271271
{
272-
await Task.Yield();
273272
times.Add(_utcTimeSource.Current);
274-
273+
await Task.Yield();
274+
275275
if (times.Count == 3)
276276
{
277277
throw new InvalidOperationException("Pah!");
@@ -326,9 +326,9 @@ public void WhenAnUnhandledErrorOccursInTheWorkTheScheduleShouldStopAndEmitTheEr
326326
{
327327
task = _scheduler.Schedule(async () =>
328328
{
329-
await Task.Yield();
330329
times.Add(_utcTimeSource.Current);
331-
330+
await Task.Yield();
331+
332332
if (times.Count == 3)
333333
{
334334
throw new Exception("Pah!");

0 commit comments

Comments
 (0)