Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

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

Closed

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.

Activity

  1. sbomer commented on Apr 15, 2022

    @sbomer
    Member

    Fixed by #2701

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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