Skip to content

Commit e8d4410

Browse files
authored
Fix test tasks not being delayed (#162)
1 parent 0534a2b commit e8d4410

File tree

4 files changed

+795
-715
lines changed

4 files changed

+795
-715
lines changed

tests/FsToolkit.ErrorHandling.TaskResult.Tests/Expecto.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ open Expecto
44
open FsToolkit.ErrorHandling
55

66
let testCaseTask name test =
7-
testCaseAsync name (Async.AwaitTask test)
7+
testCaseAsync name (async { return! test () |> Async.AwaitTask })
88

99
let ptestCaseTask name test =
10-
ptestCaseAsync name (Async.AwaitTask test)
10+
ptestCaseAsync name (async { return! test () |> Async.AwaitTask })
1111

1212
let ftestCaseTask name test =
13-
ftestCaseAsync name (Async.AwaitTask test)
13+
ftestCaseAsync name (async { return! test () |> Async.AwaitTask })

0 commit comments

Comments
 (0)