Skip to content

Commit 318604d

Browse files
authored
Merge pull request TestableIO#268 from marcomeyer/master
Use correct lock object for AllFiles
2 parents 1a0b04c + 065bee7 commit 318604d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TestingHelpers/MockFileSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public IEnumerable<string> AllFiles
256256
{
257257
get
258258
{
259-
lock (file)
259+
lock (files)
260260
return files.Where(f => !f.Value.IsDirectory).Select(f => f.Key).ToArray();
261261
}
262262
}

0 commit comments

Comments
 (0)