Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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 @@ -67,6 +70,7 @@ public function startTemporalServer(int $commandTimeout = 10): void
'--search-attribute', 'bar=int',
'--log-level', 'error',
'--headless',
...$parameters,
],
);
$this->temporalServerProcess->setTimeout($commandTimeout);
Expand Down