Skip to content

Changed TypeLocator to use ConcurrentDictionary for its cache #700

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

Merged
merged 5 commits into from
Apr 13, 2020
Merged

Changed TypeLocator to use ConcurrentDictionary for its cache #700

merged 5 commits into from
Apr 13, 2020

Conversation

bart-degreed
Copy link
Contributor

Note this does not enable running multiple instances of JADNC with conflicting resource types in parallel, but it does allow for multiple tests to execute in parallel that all target the same JADNC application.

Also made ResourceDescriptor immutable, to prevent changing the shared empty instance.

Fixes #485.

Also made ResourceDescriptor immutable, to prevent changing the shared empty instance.
Bart Koelman added 4 commits March 10, 2020 15:14
I just realized that the strange interdependencies when running unit tests sequentially (causing tests to fail in AppVeyor, but not on TravisCI or locally) may actually be caused by the global cache instance.
…, though. Restored build script and re-added concurrent cache for running tests in parallel.
@maurei maurei merged commit 08ad28a into json-api-dotnet:master Apr 13, 2020
@bart-degreed bart-degreed deleted the concurrency branch April 13, 2020 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Cannot run tests in parallel because TypeLocator is using a static cache shared between tests
2 participants