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
4 changes: 1 addition & 3 deletions src/Shared/Traits.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ public static Traits Instance
{
get
{
#if DEBUG
if (BuildEnvironmentHelper.Instance.RunningTests && Environment.GetEnvironmentVariable("MSBUILDRELOADTRAITSONEACHACCESS") == "1")
if (BuildEnvironmentHelper.Instance.RunningTests)
{
return new Traits();
}
#endif
return _instance;
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/Shared/UnitTests/TestEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ public static TestEnvironment Create(ITestOutputHelper output = null, bool ignor
env.WithInvariant(new BuildFailureLogInvariant());
}

env.SetEnvironmentVariable("MSBUILDRELOADTRAITSONEACHACCESS", "1");

return env;
}

Expand Down