Skip to content

Fix flaky static initialization error #1404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions tests/authoring/Inline/CrossLinks.fs
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,20 @@ type ``cross-link makes it into html`` () =

type ``error when using wrong scheme`` () =

static let markdown = Setup.Markdown """
[APM Server binary](docs-x:/solutions/observability/apps/apm-server-binary.md)
"""

[<Fact>]
let ``error on bad scheme`` () =
let markdown = Setup.Markdown """
[APM Server binary](docs-x:/solutions/observability/apps/apm-server-binary.md)
"""
markdown
|> hasError "'docs-x' was not found in the cross link index"

[<Fact>]
let ``has no warning`` () = markdown |> hasNoWarnings
let ``has no warning`` () =
let markdown = Setup.Markdown """
[APM Server binary](docs-x:/solutions/observability/apps/apm-server-binary.md)
"""
markdown |> hasNoWarnings

type ``error when bad anchor is used`` () =

Expand Down Expand Up @@ -143,4 +146,4 @@ type ``link to repository that does not resolve yet using double slashes`` () =
let ``error when not found in links.json`` () = markdown |> hasError("'elasticsearch' was not found in the cross link index")

[<Fact>]
let ``has no warning`` () = markdown |> hasNoWarnings
let ``has no warning`` () = markdown |> hasNoWarnings
Loading