Enable parallel test execution, mark timing-sensitive test as non-parallel, and use Interlocked for TaskId

This commit is contained in:
Stone_Red
2026-03-05 23:39:44 +01:00
parent 38e8ac9b13
commit 491eedf77e
3 changed files with 6 additions and 1 deletions
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Threading;
using YesNt.Interpreter.Utilities;
@@ -191,7 +192,7 @@ internal sealed class RuntimeInformation
IsLocalSearch = false;
LineNumber = 0;
#pragma warning disable S2696 // internalTaskId is a shared counter intentionally incremented by each Reset call
TaskId = ++internalTaskId;
TaskId = Interlocked.Increment(ref internalTaskId);
#pragma warning restore S2696
}