Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Apr 16, 2024
1 parent 31acbc4 commit 49167c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/Part/DataPartTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ public function testFromPathWithUrl()
}

$finder = new PhpExecutableFinder();
$process = new Process(array_merge([$finder->find(false)], $finder->findArguments(), ['-dopcache.enable=0', '-dvariables_order=EGPCS', '-S', '127.0.0.1:8057']));
$process = new Process(array_merge([$finder->find(false)], $finder->findArguments(), ['-dopcache.enable=0', '-dvariables_order=EGPCS', '-S', 'localhost:8057']));
$process->setWorkingDirectory(__DIR__.'/../Fixtures/web');
$process->start();

try {
do {
usleep(50000);
} while (!@fopen('http://127.0.0.1:8057', 'r'));
} while (!@fopen('http://localhost:8057', 'r'));
$p = DataPart::fromPath($file = 'http://localhost:8057/logo_symfony_header.png');
$content = file_get_contents($file);
$this->assertEquals($content, $p->getBody());
Expand Down

0 comments on commit 49167c2

Please sign in to comment.