Skip to content

Commit

Permalink
Decrease the max default workers count to 20 in tests (HangfireIO#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykpiotrmarek authored and odinserj committed Oct 29, 2016
1 parent 2970999 commit 421460d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 421460d

Please sign in to comment.