Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### unreleased

* [UPDATE] Build update to run on non-Windows platforms. Thanks @joaopgrassi! (#592, #335)
* [FIX] Fix NSubstitute could fail in concurrent environment due to auto-value providers initialization. (#600, @zvirja)

### 4.2.1 (July 2019)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public IReadOnlyCollection<IAutoValueProvider> CreateProviders(ISubstituteFactor
IAutoValueProvider[] result = null;
var lazyResult = new Lazy<IReadOnlyCollection<IAutoValueProvider>>(
() => result ?? throw new InvalidOperationException("Value was not constructed yet."),
LazyThreadSafetyMode.None);
LazyThreadSafetyMode.PublicationOnly);

result = new IAutoValueProvider[]
{
Expand Down