Skip to content

Commit 74fef27

Browse files
authored
Set version=3 for RoadRunner's reload (#1008)
* Set version=3 for roadrunner's reload * Fix styling * Fix test
1 parent 9ce570a commit 74fef27

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/RoadRunner/ServerProcessInspector.php

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public function reloadServer(): void
4747
tap($this->processFactory->createProcess([
4848
$this->findRoadRunnerBinary(),
4949
'reset',
50+
'-o', 'version=3',
5051
'-o', "rpc.listen=tcp://$host:$rpcPort",
5152
'-s',
5253
], base_path()))->start()->waitUntil(function ($type, $buffer) {

tests/RoadRunnerServerProcessInspectorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function test_roadrunner_server_process_can_be_reloaded()
6363
]);
6464

6565
$processFactory->shouldReceive('createProcess')->with(
66-
[$this->findRoadRunnerBinary(), 'reset', '-o', 'rpc.listen=tcp://127.0.0.1:6002', '-s'],
66+
[$this->findRoadRunnerBinary(), 'reset', '-o', 'server=3', '-o', 'rpc.listen=tcp://127.0.0.1:6002', '-s'],
6767
base_path(),
6868
)->andReturn($process = Mockery::mock('stdClass'));
6969

0 commit comments

Comments
 (0)