Skip to content

Flaky test - RouteTableFactoryTests.CanCacheRouteTable #36888

@BrennanConroy

Description

@BrennanConroy

Failing Test(s)

  • Microsoft.AspNetCore.Components.Routing.RouteTableFactoryTests.CanCacheRouteTable

Error Message

Assert.Same() Failure
Expected: RouteTable { Routes = [RouteEntry { ... }, RouteEntry { ... }, RouteEntry { ... }, RouteEntry { ... }] }
Actual:   RouteTable { Routes = [RouteEntry { ... }, RouteEntry { ... }, RouteEntry { ... }, RouteEntry { ... }] }

Stacktrace

Details
   at Microsoft.AspNetCore.Components.Routing.RouteTableFactoryTests.CanCacheRouteTable() in /_/src/Components/Components/test/Routing/RouteTableFactoryTests.cs:line 24

Logs

None.

Build

https://dev.azure.com/dnceng/public/_build/results?buildId=1377733&view=ms.vss-test-web.build-test-results-tab&runId=40173528&resultId=102307&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab

Looks like it's a static class with static properties, that doesn't make for good testing since anything else in the process might also touch it and affect the test.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions