Skip to content

Commit 6d1b640

Browse files
committed
Fix hang in host tests due to test parallelization
This change disables test parallelization in the PowerShellEditorServices.Test.Host project to avoid a test hang caused by two test simultaneously choosing the same "random" port numbers for their tests. We currently can't detect the same port numbers because the TCP ports are configured to allow reuse. Thus, we disable test parallelization in this assembly so that the tests all run serially, avoiding the port reuse issue.
1 parent 4aec6e0 commit 6d1b640

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//
2+
// Copyright (c) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4+
//
5+
6+
using Xunit;
7+
8+
// Disable test parallelization to avoid port reuse issues
9+
[assembly: CollectionBehavior(DisableTestParallelization = true)]

0 commit comments

Comments
 (0)