From 0a5ae1c68ee649f0c54a490eccf794d95da86ba8 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Thu, 9 Jul 2026 12:03:46 +0100 Subject: [PATCH] Remove unnecessary AssemblyInfo.cs from Tasks.Git.UnitTests The assembly-level CollectionBehavior(DisableTestParallelization = true) was added to guard tests that temporarily changed the process current working directory. Those tests no longer mutate the CWD, so disabling test parallelization for the whole assembly is no longer needed. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../AssemblyInfo.cs | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 src/Microsoft.Build.Tasks.Git.UnitTests/AssemblyInfo.cs diff --git a/src/Microsoft.Build.Tasks.Git.UnitTests/AssemblyInfo.cs b/src/Microsoft.Build.Tasks.Git.UnitTests/AssemblyInfo.cs deleted file mode 100644 index f0c76b68de..0000000000 --- a/src/Microsoft.Build.Tasks.Git.UnitTests/AssemblyInfo.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the License.txt file in the project root for more information. - -using Xunit; - -// Some tests in this assembly temporarily change the process current working directory to validate that -// repository discovery resolves paths against the task's project directory rather than the process CWD. -// Disable test parallelization in this assembly so that the CWD mutation can't race with other tests. -[assembly: CollectionBehavior(DisableTestParallelization = true)]