Skip to content

Flaky test - Mono.Linker.Tests.GetDisplayNameTests.TestGetDisplayName #2451

Closed
@vitek-karas

Description

@vitek-karas

Full name of the test: TestGetDisplayName(MethodWithNestedGenericTypeArguments,DisplayNameAttribute)

Sometimes it fails with:

Expected string length 203 but was 185. Strings differ at index 182.
Expected: "...[]>.NestedGenericClassMultipleParameters<Char*[],Int32[,][]>)"
But was:  "...[]>.NestedGenericClassMultipleParameters`2)"
------------------------------------------------------^

It happened several times to me locally and now I've seen it in CI as well: https://dev.azure.com/dnceng/public/_build/results?buildId=1515259&view=ms.vss-test-web.build-test-results-tab&runId=43119672&resultId=100616&paneView=debug

Locally it always passes on rerun. I suspect test order issue or something similar, but I have no hard data to prove anything.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions