Skip to content

Commit 9569f36

Browse files
gr8manmichalsn
andauthored
Update tests/system/HTTP/ResponseTest.php
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
1 parent e261a7e commit 9569f36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/system/HTTP/ResponseTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,8 @@ public function testGetDownloadResponseByExtremeFilePath(): void
498498
{
499499
$response = new Response(new App());
500500

501-
$tempDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'ci4_test_dir';
502-
@mkdir($tempDir);
501+
$tempDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'ci4_test_dir_' . bin2hex(random_bytes(8));
502+
$this->assertTrue(mkdir($tempDir));
503503
$tempDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'ci4_test_dir_' . bin2hex(random_bytes(8));
504504
$this->assertTrue(mkdir($tempDir));
505505
$extremeName = 'my_extreme_file_!@#$%.txt';

0 commit comments

Comments
 (0)