Skip to content

Commit fd32ec5

Browse files
minor #57575 [Filesystem][Mime] Fix transient tests (nicolas-grekas)
This PR was merged into the 5.4 branch. Discussion ---------- [Filesystem][Mime] Fix transient tests | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT HttpClient already uses this port so that when running concurrently, we get 404s for the logo. Commits ------- c3bf9a6 [Filesystem][Mime] Fix transient tests
2 parents 7beff57 + c3bf9a6 commit fd32ec5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Symfony/Component/Filesystem/Tests/FilesystemTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,17 @@ public function testCopyForOriginUrlsAndExistingLocalFileDefaultsToCopy()
171171
}
172172

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

177177
$process->start();
178178

179179
do {
180180
usleep(50000);
181-
} while (!@fopen('http://localhost:8057', 'r'));
181+
} while (!@fopen('http://localhost:8857', 'r'));
182182

183183
try {
184-
$sourceFilePath = 'http://localhost:8057/logo_symfony_header.png';
184+
$sourceFilePath = 'http://localhost:8857/logo_symfony_header.png';
185185
$targetFilePath = $this->workspace.\DIRECTORY_SEPARATOR.'copy_target_file';
186186
file_put_contents($targetFilePath, 'TARGET FILE');
187187
$this->filesystem->copy($sourceFilePath, $targetFilePath, false);

src/Symfony/Component/Mime/Tests/Part/DataPartTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,15 @@ public function testFromPathWithUrl()
143143
}
144144

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

150150
try {
151151
do {
152152
usleep(50000);
153-
} while (!@fopen('http://localhost:8057', 'r'));
154-
$p = DataPart::fromPath($file = 'http://localhost:8057/logo_symfony_header.png');
153+
} while (!@fopen('http://localhost:8856', 'r'));
154+
$p = DataPart::fromPath($file = 'http://localhost:8856/logo_symfony_header.png');
155155
$content = file_get_contents($file);
156156
$this->assertEquals($content, $p->getBody());
157157
$maxLineLength = 76;

0 commit comments

Comments
 (0)