Merge pull request #7829 from nguerrera/port-json-flakiness-fix
Use temporary path for fake deps.json in test
This commit is contained in:
commit
fe57933b09
1 changed files with 2 additions and 8 deletions
|
@ -266,14 +266,8 @@ namespace Microsoft.DotNet.Tests
|
|||
|
||||
var lockFile = new LockFileFormat().Read(lockFilePath);
|
||||
|
||||
var depsJsonFile = Path.Combine(
|
||||
Path.GetDirectoryName(lockFilePath),
|
||||
"dotnet-portable.deps.json");
|
||||
|
||||
if (File.Exists(depsJsonFile))
|
||||
{
|
||||
File.Delete(depsJsonFile);
|
||||
}
|
||||
// NOTE: We must not use the real deps.json path here as it will interfere with tests running in parallel.
|
||||
var depsJsonFile = Path.GetTempFileName();
|
||||
File.WriteAllText(depsJsonFile, "temp");
|
||||
|
||||
var projectToolsCommandResolver = SetupProjectToolsCommandResolver();
|
||||
|
|
Loading…
Reference in a new issue