Skip to content

Commit 5683988

Browse files
committed
Fix wrong config of testing class
1 parent 795e789 commit 5683988

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/TestTimeoutNormalTask.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Vectorial1024\LaravelProcessAsync\Tests;
44

5-
use Illuminate\Support\Facades\Log;
65
use Vectorial1024\LaravelProcessAsync\AsyncTaskInterface;
76

87
class TestTimeoutNormalTask implements AsyncTaskInterface
@@ -17,13 +16,12 @@ public function __construct(
1716

1817
public function execute(): void
1918
{
20-
// pass
21-
Log::info("Starting!");
19+
// we have to sleep a bit to trigger the timeout
20+
sleep(1);
2221
}
2322

2423
public function handleTimeout(): void
2524
{
26-
Log::info("Starting!");
2725
$fp = fopen($this->targetFilePath, "w");
2826
fwrite($fp, $this->message);
2927
fflush($fp);

0 commit comments

Comments
 (0)