Skip to content

Commit f4d78bb

Browse files
try to fix test: ProjectCracker do not pass project file names as OtherOptions
1 parent f070db4 commit f4d78bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/fsharp/FSharp.Compiler.Service.ProjectCracker/ProjectCracker.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type ProjectCracker =
3434
logMap := Map.add opts.ProjectFile opts.LogOutput !logMap
3535
{ ProjectFileName = opts.ProjectFile
3636
ProjectFileNames = sourceFiles
37-
OtherOptions = Array.append otherOptions sourceFiles
37+
OtherOptions = otherOptions
3838
ReferencedProjects = referencedProjects
3939
IsIncompleteTypeCheckEnvironment = false
4040
UseScriptResolutionRules = false

tests/service/ExprTests.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ let ``Check use of type provider that provides calls to F# code`` () =
872872
|> checker.ParseAndCheckProject
873873
|> Async.RunSynchronously
874874

875-
res.Errors.Length |> shouldEqual 0
875+
Assert.AreEqual ([||], res.Errors, sprintf "Should not be errors, but: %A" res.Errors)
876876

877877
let results =
878878
[ for f in res.AssemblyContents.ImplementationFiles do

0 commit comments

Comments
 (0)