Skip to content
Merged
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
10 changes: 10 additions & 0 deletions Tests/RCommon.Security.Tests/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using Xunit;

// Several test classes in this assembly exercise ClaimTypesConst, which is a process-wide mutable
// static (configure-once-at-startup). ClaimTypesConstTests and ClaimsIdentityExtensionsTests both
// call the internal ClaimTypesConst.Reset() in their constructor/Dispose for isolation. Under xUnit's
// default per-class parallelism these classes race on that global: a parallel Reset() can null the
// options mid-test, so a subsequent property read rebuilds defaults and a configured value (e.g. a
// custom Role) reverts to the default claim URI. Serialize the assembly's tests to make the shared
// static state deterministic.
[assembly: CollectionBehavior(DisableTestParallelization = true)]
Loading