Gridify
Gridify copied to clipboard
Concurrently changing GridifyGlobalConfigurations causes inconsistent behavior
Version
v2.14.2
Details
This issue can be identified and tested within the project's unit tests. Changing the global configuration for a single test can result in other tests' failure, which might also happen in the production environment and actual code base.
Steps to reproduce
add this test: e.g:
[Fact]
public async Task ConcurrencyIssue()
{
GridifyGlobalConfiguration.DisableNullChecks = true;
await Task.Delay(100);
GridifyGlobalConfiguration.DisableNullChecks = false;
}
and run all the unit-tests: