You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try { System.IO.Directory.CreateDirectory(this.Directory); }
catch (Exception ex)
{
throw new InvalidOperationException($"Failed to ensure that lock file directory {this.Directory} exists", ex);
}
Very rarely when running TestParallelism, I've seen this fail with UnauthorizedAccessException, presumably due to some form of concurrent directory creation. We can make this less vulnerable by being willing to retry directory creation a certain number of times when hitting that particular exception.