Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
majocha committed Oct 29, 2024
1 parent 323ebed commit 0ffca1f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/FSharp.Compiler.Service.Tests/MultiProjectAnalysisTests.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module FSharp.Compiler.Service.Tests.MultiProjectAnalysisTests
// Because of shared physical files
// TODO: make the test cases independent
[<FSharp.Test.RunInSequence>]
module FSharp.Compiler.Service.Tests.MultiProjectAnalysisTests

open Xunit
open FsUnit
Expand Down Expand Up @@ -453,7 +456,11 @@ let ``Test multi project symbols should pick up changes in dependent projects``

// register to count the file checks
let mutable count = 0
let waitForCount n = System.Threading.SpinWait.SpinUntil(fun () -> count = n)

let waitForCount n =
if count > n then failwith $"checks count {count}, expected {n}"
System.Threading.SpinWait.SpinUntil(fun () -> count = n)

checker.FileChecked.Add (fun _ -> System.Threading.Interlocked.Increment &count |> ignore)

//---------------- Write the first version of the file in project 1 and check the project --------------------
Expand Down

0 comments on commit 0ffca1f

Please sign in to comment.