Skip to content

Concurrency error with reader registry #1658

@darrelmiller

Description

@darrelmiller

Describe the bug
Error when running tests. We need to make the registry of readers a concurrent directory.

System.InvalidOperationException : Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct.
at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary2.set_Item(TKey key, TValue value)
at Microsoft.OpenApi.Reader.OpenApiReaderRegistry.RegisterReader(String format, IOpenApiReader reader) in

OpenApi File To Reproduce
Run the unit tests

Expected behavior
All tests to pass

Screenshots/Code Snippets

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

type:bugA broken experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions