From 21800e1148a55b5c3824b57f549d729c8b6631e9 Mon Sep 17 00:00:00 2001 From: Martin Molinero Date: Wed, 19 Aug 2026 11:15:32 -0300 Subject: [PATCH] Run SubscriptionUtilsTests cases sequentially The fixture shares '_security' and '_config' state recreated in SetUp, but was marked ParallelScope.All, which runs its test cases concurrently on the shared fixture instance: a case updating the shared config price scale factor, or replacing the fields from its SetUp, can race a sibling case mid run, producing rare flaky failures in the price scale assertions. Use ParallelScope.Fixtures like the rest of the suite, the fixture still runs in parallel with other fixtures, its cases now sequentially. Co-Authored-By: Claude Fable 5 --- Tests/Engine/DataFeeds/SubscriptionUtilsTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Engine/DataFeeds/SubscriptionUtilsTests.cs b/Tests/Engine/DataFeeds/SubscriptionUtilsTests.cs index 2c9599f1d109..3ede2b43981f 100644 --- a/Tests/Engine/DataFeeds/SubscriptionUtilsTests.cs +++ b/Tests/Engine/DataFeeds/SubscriptionUtilsTests.cs @@ -32,7 +32,7 @@ namespace QuantConnect.Tests.Engine.DataFeeds { - [TestFixture, Parallelizable(ParallelScope.All)] + [TestFixture, Parallelizable(ParallelScope.Fixtures)] public class SubscriptionUtilsTests { private Security _security;