diff --git a/tests/FSharp.Core.UnitTests/FSharp.Core/Microsoft.FSharp.Control/AsyncModule.fs b/tests/FSharp.Core.UnitTests/FSharp.Core/Microsoft.FSharp.Control/AsyncModule.fs index fce1b0fd710..e9bfc59e0c9 100644 --- a/tests/FSharp.Core.UnitTests/FSharp.Core/Microsoft.FSharp.Control/AsyncModule.fs +++ b/tests/FSharp.Core.UnitTests/FSharp.Core/Microsoft.FSharp.Control/AsyncModule.fs @@ -473,8 +473,9 @@ type AsyncModule() = let mutable running = new CountdownEvent(1) let job i = async { - running.AddCount 1 - use! holder = Async.OnCancel (running.Signal >> ignore) + use! holder = + running.AddCount 1 + Async.OnCancel (running.Signal >> ignore) do! failOnlyOne |> Async.AwaitWaitHandle |> Async.Ignore running.Signal() |> ignore failwith "boom"