Lucene.Net.Tests + Lucene.Net.Codecs: Added LevelOfParallelism attribute at the 
assembly level to prevent codecs/index related tests from running in parallel 
(and screwing up the shared static variable for determining whether old format 
impersonation is active).


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/9616324b
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/9616324b
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/9616324b

Branch: refs/heads/api-work
Commit: 9616324b2d35cfa7fe34d9b73e0aaf9a24cb3d0e
Parents: 4b0fa13
Author: Shad Storhaug <[email protected]>
Authored: Mon Feb 27 06:11:55 2017 +0700
Committer: Shad Storhaug <[email protected]>
Committed: Mon Feb 27 06:18:03 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Tests.Codecs/Properties/AssemblyInfo.cs | 8 +++++++-
 src/Lucene.Net.Tests/AssemblyInfo.cs                   | 7 ++++++-
 2 files changed, 13 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9616324b/src/Lucene.Net.Tests.Codecs/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Properties/AssemblyInfo.cs 
b/src/Lucene.Net.Tests.Codecs/Properties/AssemblyInfo.cs
index a54794e..726a4db 100644
--- a/src/Lucene.Net.Tests.Codecs/Properties/AssemblyInfo.cs
+++ b/src/Lucene.Net.Tests.Codecs/Properties/AssemblyInfo.cs
@@ -1,4 +1,5 @@
-using System.Reflection;
+using NUnit.Framework;
+using System.Reflection;
 using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
 
@@ -34,3 +35,8 @@ using System.Runtime.InteropServices;
 // [assembly: AssemblyVersion("1.0.*")]
 [assembly: AssemblyVersion("1.0.0.0")]
 [assembly: AssemblyFileVersion("1.0.0.0")]
+
+
+// LUCENENET specific - only allow tests in this assembly to run one at a time
+// to prevent polluting shared state.
+[assembly: LevelOfParallelism(1)]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9616324b/src/Lucene.Net.Tests/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/AssemblyInfo.cs 
b/src/Lucene.Net.Tests/AssemblyInfo.cs
index 46d6fb9..186be6b 100644
--- a/src/Lucene.Net.Tests/AssemblyInfo.cs
+++ b/src/Lucene.Net.Tests/AssemblyInfo.cs
@@ -84,4 +84,9 @@ using System.Runtime.CompilerServices;
 
 #if !NETSTANDARD
 [assembly: Timeout(20000)]
-#endif 
\ No newline at end of file
+#endif 
+
+
+// LUCENENET specific - only allow tests in this assembly to run one at a time
+// to prevent polluting shared state.
+[assembly: LevelOfParallelism(1)]
\ No newline at end of file

Reply via email to