Skip to content

Commit 301d7bf

Browse files
authored
Avoid running GetDisplayNameTests in parallel (dotnet/linker#2701)
There seems to be a race condition on Cecil while trying to get GenericParameters, if a multithreaded test asks simultaneously about GenericParameters on the same type Cecil answers could vary creating test failures. Fixes dotnet/linker#2693 Commit migrated from dotnet/linker@5d8277a
1 parent 1bc28d5 commit 301d7bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/illink/test/Mono.Linker.Tests/Tests/GetDisplayNameTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
namespace Mono.Linker.Tests
1010
{
11+
[NonParallelizable]
1112
[TestFixture]
1213
public class GetDisplayNameTests
1314
{
@@ -231,4 +232,4 @@ public static void Method ()
231232
{
232233
}
233234
}
234-
}
235+
}

0 commit comments

Comments
 (0)