Skip to content

Commit

Permalink
Merge pull request #527: parameters for test server
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk authored Dec 17, 2024
2 parents cc35329 + e8479ea commit 5cf33ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion testing/src/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ public function start(?string $rrCommand = null, int $commandTimeout = 10, array
$this->startRoadRunner($rrCommand, $commandTimeout, $envs);
}

public function startTemporalServer(int $commandTimeout = 10): void
/**
* @param list<non-empty-string> $parameters
*/
public function startTemporalServer(int $commandTimeout = 10, array $parameters = []): void
{
$temporalPort = \parse_url(\getenv('TEMPORAL_ADDRESS') ?: '127.0.0.1:7233', PHP_URL_PORT);

Expand All @@ -68,6 +71,7 @@ public function startTemporalServer(int $commandTimeout = 10): void
'--search-attribute', 'bar=int',
'--log-level', 'error',
'--headless',
...$parameters,
],
);
$this->temporalServerProcess->setTimeout($commandTimeout);
Expand Down

0 comments on commit 5cf33ab

Please sign in to comment.