Skip to content

Commit 00592a5

Browse files
committed
Made tests more robust for CI.
1 parent 97e3bb8 commit 00592a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

DevDecoder.Scheduling.Test/SchedulerFacts.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ async Task TestJob(IJobState state, CancellationToken cancellationToken)
140140
// Running job twice should de-bounce.
141141
await Task.WhenAll(job.ExecuteAsync(cts.Token), job.ExecuteAsync(cts.Token));
142142

143+
// Yield to allow job continuations to complete.
144+
await Task.Delay(10);
145+
143146
// Should only have run once.
144147
Assert.Equal(1, counter);
145148
Assert.True(job.IsEnabled);

0 commit comments

Comments
 (0)