Skip to content

Commit

Permalink
test: different config for MultiThread config test
Browse files Browse the repository at this point in the history
  • Loading branch information
VonDerBeck committed Sep 25, 2024
1 parent 9123b67 commit 8f87364
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Zeebe.Client.Accelerator.Integration.Tests.Handlers
{
[MaxJobsActive(50)]
[MaxJobsActive(60)]
[HandlerThreads(3)]
public class MultiThreadJobHandler : IAsyncZeebeWorkerWithResult<Output>
{
Expand Down
4 changes: 2 additions & 2 deletions test/Zeebe.Client.Accelerator.Integration.Tests/Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public async Task UsesMultipleThreadsWhenConfigured()
Assert.True(deployResponse.Key > 0);

var input = new List<int>();
for (int i = 0; i < 50; i++) input.Add(i);
for (int i = 0; i < 60; i++) input.Add(i);

var correlationId = Guid.NewGuid();
await zeebeClient.NewCreateProcessInstanceCommand()
Expand All @@ -155,7 +155,7 @@ await zeebeClient.NewCreateProcessInstanceCommand()
CorrelationId = correlationId
})
.Send();
WaitForHandlersToComplete(50, 5000);
WaitForHandlersToComplete(60, 6000);

var variables = zeebeClient.ReceiveMessage<MultiThreadVariables>("responseFor_" + correlationId, TimeSpan.FromSeconds(25));
Assert.True(variables.UsedThreads.Distinct().Count() >= 3); // not exact due to the underlying TPL implementation internals
Expand Down

0 comments on commit 8f87364

Please sign in to comment.