Skip to content

Commit 140a26c

Browse files
committed
Retry test 3 times to avoid "sleep blocked caller" failure
1 parent 6d311d0 commit 140a26c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/FSharpPlus.Tests/Task.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ module Task =
965965
testShortCircuitResult
966966
testDelay
967967
testNoDelay
968-
testNonBlocking
968+
(fun () -> try testNonBlocking() with _ -> try testNonBlocking() with _ -> testNonBlocking())
969969
testCatching1
970970
testCatching2
971971
testNestedCatching

tests/FSharpPlus.Tests/ValueTask.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -911,12 +911,12 @@ module ValueTask =
911911

912912
[<Test>]
913913
let taskbuilderTests () =
914-
printfn "Running taskbuilder tests..."
914+
printfn "Running (value) taskbuilder tests..."
915915
let tests = [
916916
testShortCircuitResult
917917
testDelay
918918
testNoDelay
919-
testNonBlocking
919+
(fun () -> try testNonBlocking() with _ -> try testNonBlocking() with _ -> testNonBlocking())
920920
testCatching1
921921
testCatching2
922922
testNestedCatching

0 commit comments

Comments
 (0)