Skip to content

Commit eea0e8f

Browse files
committed
cleanup TestDaemonVersion
1 parent 3e1bd3e commit eea0e8f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/FSharpLint.Client.Tests/TestClient.fs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ let TestDaemonVersion() =
5050
let testHintsFile = basePath </> "tests" </> "FSharpLint.FunctionalTest.TestedProject" </> "FSharpLint.FunctionalTest.TestedProject.NetCore" </> "TestHints.fs"
5151
let fsharpLintService: FSharpLintService = new LSPFSharpLintService() :> FSharpLintService
5252
let versionResponse = runVersionCall testHintsFile fsharpLintService
53-
53+
54+
match versionResponse.Result with
55+
| Content result -> Assert.IsFalse (String.IsNullOrWhiteSpace result)
56+
// | _ -> Assert.Fail("Response should be a version number")
57+
5458
Assert.AreEqual(LanguagePrimitives.EnumToValue FSharpLintResponseCode.Version, versionResponse.Code)
5559

5660
[<Test>]

0 commit comments

Comments
 (0)