From b11cdcd55e27a5327b451ffc33bd2982be2759cf Mon Sep 17 00:00:00 2001 From: Jakub Majocha <1760221+majocha@users.noreply.github.com> Date: Tue, 29 Oct 2024 15:44:17 +0100 Subject: [PATCH] try fix test --- .../FSharpChecker/TransparentCompiler.fs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/FSharp.Compiler.ComponentTests/FSharpChecker/TransparentCompiler.fs b/tests/FSharp.Compiler.ComponentTests/FSharpChecker/TransparentCompiler.fs index 8c9e020c8fb..f5c80cf7f96 100644 --- a/tests/FSharp.Compiler.ComponentTests/FSharpChecker/TransparentCompiler.fs +++ b/tests/FSharp.Compiler.ComponentTests/FSharpChecker/TransparentCompiler.fs @@ -1012,13 +1012,12 @@ printfn "Hello from F#" [] 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) =