File tree 3 files changed +5
-5
lines changed 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public function handle($task = null)
29
29
$ task = $ task ?: $ this ->captureTask ();
30
30
31
31
$ command = unserialize ($ task ['data ' ]['command ' ]);
32
- $ connection = $ command ->connection ?? ' cloudtasks ' ;
32
+ $ connection = $ command ->connection ?? config ( ' queue.default ' ) ;
33
33
34
34
$ this ->authorizeRequest ($ connection );
35
35
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ public function after_max_attempts_it_will_log_to_failed_table()
165
165
}
166
166
167
167
$ this ->assertDatabaseHas ('failed_jobs ' , [
168
- 'connection ' => 'cloudtasks ' ,
168
+ 'connection ' => 'my- cloudtasks-connection ' ,
169
169
'queue ' => 'my-queue ' ,
170
170
'payload ' => rtrim ($ this ->failingJobPayload ()),
171
171
]);
Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ protected function getEnvironmentSetUp($app)
59
59
}
60
60
61
61
$ app ['config ' ]->set ('cache.default ' , 'file ' );
62
- $ app ['config ' ]->set ('queue.default ' , 'cloudtasks ' );
63
- $ app ['config ' ]->set ('queue.connections.cloudtasks ' , [
62
+ $ app ['config ' ]->set ('queue.default ' , 'my- cloudtasks-connection ' );
63
+ $ app ['config ' ]->set ('queue.connections.my- cloudtasks-connection ' , [
64
64
'driver ' => 'cloudtasks ' ,
65
65
'queue ' => 'test-queue ' ,
66
66
'project ' => 'test-project ' ,
@@ -72,6 +72,6 @@ protected function getEnvironmentSetUp($app)
72
72
73
73
protected function setConfigValue ($ key , $ value )
74
74
{
75
- $ this ->app ['config ' ]->set ('queue.connections.cloudtasks. ' . $ key , $ value );
75
+ $ this ->app ['config ' ]->set ('queue.connections.my- cloudtasks-connection . ' . $ key , $ value );
76
76
}
77
77
}
You can’t perform that action at this time.
0 commit comments