Closed et1975 closed 5 years ago
Sorry, I can't reproduce. Can you give more details or an example.
Ah sorry I missed task test, will check.
No sorry, I can ptestTask in the Expecto tests. Do you have a small example?
I have this:
let noop = task { Tests.skiptest "skipped" }
which used to work as expected in 8.6.0, now it seems to fall through.
It's used to conditionally skip tests and invoked via something like this:
testTask name {
let task = mkTask arg // <-- this is where the noop task would end up
let! r = Task.WhenAny(task, Task.Delay timeoutMs)
if task :> Task <> r then Tests.failtestNoStack "timed out"
return! task
}
I'm not sure what changed but the ignore ends up in an AggregateExpception and then isn't considered as an ignore.
Easy enough to put in a check.
Using 8.10.0 and skipping a task test: