Skip to content

Commit

Permalink
Debug test on Linux (#16010)
Browse files Browse the repository at this point in the history
* Better test error message

* Update tests/FSharp.Compiler.ComponentTests/FSharpChecker/CommonWorkflows.fs

Co-authored-by: Tomas Grosup <tomasgrosup@microsoft.com>

---------

Co-authored-by: Tomas Grosup <tomasgrosup@microsoft.com>
  • Loading branch information
0101 and T-Gro committed Feb 5, 2024
1 parent b0d0062 commit 3ac064e
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,19 +151,19 @@ let GetAllUsesOfAllSymbols() =
.Build()

use _ = Activity.start "GetAllUsesOfAllSymbols" [ ]
let result =
async {

let result =
async {
let project = makeTestProject()
let checker = ProjectWorkflowBuilder(project, useGetSource=true, useChangeNotifications = true).Checker
do! saveProject project false checker
do! saveProject project false checker
let options = project.GetProjectOptions checker
let! checkProjectResults = checker.ParseAndCheckProject(options)
let! checkProjectResults = checker.ParseAndCheckProject(options)
return checkProjectResults.GetAllUsesOfAllSymbols()
} |> Async.RunSynchronously


traceProvider.ForceFlush() |> ignore
traceProvider.Dispose()

Assert.Equal(79, result.Length)
if result.Length <> 79 then failwith $"Expected 79 symbolUses, got {result.Length}:\n%A{result}"

0 comments on commit 3ac064e

Please sign in to comment.