NCronJob icon indicating copy to clipboard operation
NCronJob copied to clipboard

`CancelledJobIsStillAValidExecution` is not deterministic

Open linkdotnet opened this issue 1 year ago • 1 comments

The following test is flaky and has to be fixed: CancelledJobIsStillAValidExecution. The problem is that this test seems to fail only when executed with other tests.

EDIT: The test utilizes a Task.Delay(200) to reduce flakiness. The only way to tackle this properly is to introduce some kind of notification layer so that the test has a chance to know when certain operations are done.

linkdotnet avatar May 01 '24 19:05 linkdotnet

I can repeatedly make it fail if I run JobShouldHonorApplicationCancellationDuringRetry first and then CancelledJobIsStillAValidExecution

linkdotnet avatar May 01 '24 19:05 linkdotnet

PR-85 fixes this issue

falvarez1 avatar Jun 07 '24 04:06 falvarez1