We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 795e789 commit 5683988Copy full SHA for 5683988
tests/TestTimeoutNormalTask.php
@@ -2,7 +2,6 @@
2
3
namespace Vectorial1024\LaravelProcessAsync\Tests;
4
5
-use Illuminate\Support\Facades\Log;
6
use Vectorial1024\LaravelProcessAsync\AsyncTaskInterface;
7
8
class TestTimeoutNormalTask implements AsyncTaskInterface
@@ -17,13 +16,12 @@ public function __construct(
17
16
18
public function execute(): void
19
{
20
- // pass
21
- Log::info("Starting!");
+ // we have to sleep a bit to trigger the timeout
+ sleep(1);
22
}
23
24
public function handleTimeout(): void
25
26
27
$fp = fopen($this->targetFilePath, "w");
28
fwrite($fp, $this->message);
29
fflush($fp);
0 commit comments