Index: DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/MultiCoreMacroStabilityInwardsTests.cs =================================================================== diff -u -r6491 -r6499 --- DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/MultiCoreMacroStabilityInwardsTests.cs (.../MultiCoreMacroStabilityInwardsTests.cs) (revision 6491) +++ DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/MultiCoreMacroStabilityInwardsTests.cs (.../MultiCoreMacroStabilityInwardsTests.cs) (revision 6499) @@ -94,12 +94,14 @@ } [Test, Category(Categories.MultiCore)] - [TestCase(4)] - [TestCase(8)] + [TestCase(3)] + [TestCase(7)] [TestCase(23)] [Category(Categories.WorkInProgress)] // As long as multicore is not fixed, it might give errors public void DesignBishopOptimizedSlopeAndShoulderAdaptionWithScenariosForHeadPL3CalculatesCorrect(int cores) { + int availableCores = Environment.ProcessorCount - 1; + Assert.That(availableCores, Is.GreaterThanOrEqualTo(cores), $"Requested cores ({cores}) exceeds available cores({availableCores})"); const string mapTestFiles = @"TestFiles\"; const string inputFilename = "InputFileMultiCoreTestForScenarioAdaption.xml"; string fullInputFilename = Path.Combine(mapTestFiles, inputFilename);