Skip to content

Commit

Permalink
get perf tests working again
Browse files Browse the repository at this point in the history
  • Loading branch information
withinboredom committed Mar 11, 2024
1 parent c7b7e2b commit 27a51a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/PerformanceTests/HelloCities/HelloSequence.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

class HelloSequence
{
public function __invoke(OrchestrationContextInterface $context)
public function __invoke(OrchestrationContextInterface $context): array
{
$outputs = [
$context->callActivity(SayHello::class, ['Tokyo']),
Expand All @@ -38,6 +38,6 @@ public function __invoke(OrchestrationContextInterface $context)
$context->callActivity(SayHello::class, ['Seoul']),
];

return $context->waitAll(...$outputs)->getResult();
return $context->waitAll(...$outputs);
}
}
2 changes: 1 addition & 1 deletion tests/PerformanceTests/PerformanceClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
}

$ids = array_keys(array_fill(0, $numberToLaunch * $numberLaunchers, true));
$ids = array_chunk($ids, 100);
$ids = array_chunk($ids, 10);

foreach($ids as $num => $chunk) {
$getters = array_map(static fn($id) => async(fn() => $client->waitForCompletion(new OrchestrationInstance(HelloSequence::class, $id))), $chunk);
Expand Down

0 comments on commit 27a51a6

Please sign in to comment.