Skip to content

Commit

Permalink
try fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
majocha committed Oct 29, 2024
1 parent b2b69ea commit b11cdcd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1012,13 +1012,12 @@ printfn "Hello from F#"

[<Fact>]
let ``Transparent Compiler ScriptClosure cache is populated after GetProjectOptionsFromScript`` () =
async {
task {
let transparentChecker = FSharpChecker.Create(useTransparentCompiler = true)
let scriptName = Path.Combine(__SOURCE_DIRECTORY__, "script.fsx")
let content = SourceTextNew.ofString ""
let! _ = transparentChecker.GetProjectOptionsFromScript(scriptName, content)
Assert.Equal(1, transparentChecker.Caches.ScriptClosure.Count)

}

type private LoadClosureTestShim(currentFileSystem: IFileSystem) =
Expand Down

0 comments on commit b11cdcd

Please sign in to comment.