From 421460d28e7dcd8bb04d0cb81bb516fff6dc7d96 Mon Sep 17 00:00:00 2001 From: patrykpiotrmarek Date: Sat, 29 Oct 2016 11:28:12 +0200 Subject: [PATCH] Decrease the max default workers count to 20 in tests (#701) --- .../Server/BackgroundJobServerOptionsFacts.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Hangfire.Core.Tests/Server/BackgroundJobServerOptionsFacts.cs b/tests/Hangfire.Core.Tests/Server/BackgroundJobServerOptionsFacts.cs index 429fde428..200ae9a97 100644 --- a/tests/Hangfire.Core.Tests/Server/BackgroundJobServerOptionsFacts.cs +++ b/tests/Hangfire.Core.Tests/Server/BackgroundJobServerOptionsFacts.cs @@ -11,7 +11,7 @@ public void Ctor_InitializeProperties_WithCorrectValues() { var options = CreateOptions(); - Assert.Equal(Math.Min(Environment.ProcessorCount * 5, 40), options.WorkerCount); + Assert.Equal(Math.Min(Environment.ProcessorCount * 5, 20), options.WorkerCount); Assert.Equal(EnqueuedState.DefaultQueue, options.Queues[0]); Assert.True(options.ShutdownTimeout > TimeSpan.Zero); Assert.True(options.SchedulePollingInterval > TimeSpan.Zero);