From 429a98f9b015f41c1206929121c924e3cebe0787 Mon Sep 17 00:00:00 2001 From: QUT Ecoacoustics Date: Wed, 16 Aug 2023 10:18:31 +1000 Subject: [PATCH] Make test less taxing on CI runners --- tests/Acoustics.Test/Shared/ProcessRunnerTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Acoustics.Test/Shared/ProcessRunnerTests.cs b/tests/Acoustics.Test/Shared/ProcessRunnerTests.cs index 13fc2375f..8c40a111f 100644 --- a/tests/Acoustics.Test/Shared/ProcessRunnerTests.cs +++ b/tests/Acoustics.Test/Shared/ProcessRunnerTests.cs @@ -20,7 +20,8 @@ public class ProcessRunnerTests : OutputDirectoryTest [RetryTestMethod(3)] public void ProcessRunnerDoesNotDeadlock() { - var result = Enumerable.Range(0, 50).AsParallel().Select(this.RunFfprobe).ToArray(); + var runs = TestHelper.OnContinuousIntegrationServer ? 10 : 50; + var result = Enumerable.Range(0, runs).AsParallel().Select(this.RunFfprobe).ToArray(); Assert.IsTrue(result.All()); }