Skip to content

Commit f7d6e2b

Browse files
committed
Add tests for monitoring bit
1 parent 47ce76e commit f7d6e2b

File tree

4 files changed

+388
-2
lines changed

4 files changed

+388
-2
lines changed

factories/StackkitCloudTaskFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class StackkitCloudTaskFactory extends Factory
1515
public function definition()
1616
{
1717
return [
18-
'status' => 'pending',
18+
'status' => 'queued',
1919
'queue' => 'barbequeue',
2020
'task_uuid' => (string) Str::uuid(),
2121
'name' => 'SimpleJob',

phpunit.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<file>./tests/ConfigTest.php</file>
1414
<file>./tests/TaskHandlerTest.php</file>
1515
<file>./tests/CloudTasksApiTest.php</file>
16+
<file>./tests/CloudTasksMonitoringTest.php</file>
1617
</testsuite>
1718
</testsuites>
1819
<php>

src/CloudTasksServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Stackkit\LaravelGoogleCloudTasksQueue;
44

55
use Google\Cloud\Tasks\V2\CloudTasksClient;
6-
use \Grpc\ChannelCredentials;
76
use Illuminate\Queue\Events\JobExceptionOccurred;
87
use Illuminate\Queue\Events\JobFailed;
98
use Illuminate\Queue\Events\JobProcessed;

0 commit comments

Comments
 (0)