Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
tarampampam committed Feb 10, 2022
1 parent 11aace0 commit fb0c6eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/roadrunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
Events\AfterLoopIterationEvent::class => [
...Defaults::afterLoopIteration(),
Listeners\RunGarbageCollectorListener::class, // keep the memory usage low
// Listeners\CleanupUploadedFilesListener::class, // remove temporary files
],

Events\AfterLoopStoppedEvent::class => [
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Listeners/CleanupUploadedFilesListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function testHandle(): void
new UploadedFile($file_3_path, $file_3_name),
]);

\rename($file_3_path, $file_3_new_path = $file_3_path . '.new');
\rename($file_3_path, $file_3_new_path = $file_3_path . Str::random());

/** @var m\MockInterface|WithHttpRequest $event */
$event = m::mock(WithHttpRequest::class)
Expand Down

0 comments on commit fb0c6eb

Please sign in to comment.