File tree Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class SendEmailsCommand extends Command
13
13
*
14
14
* @var string
15
15
*/
16
- protected $ signature = 'email:send {--timeout=300} ' ;
16
+ protected $ signature = 'email:send ' ;
17
17
18
18
/**
19
19
* The console command description.
@@ -48,8 +48,6 @@ public function __construct(Store $store)
48
48
*/
49
49
public function handle ()
50
50
{
51
- set_time_limit ($ this ->option ('timeout ' ));
52
-
53
51
$ emails = $ this ->store ->getQueue ();
54
52
55
53
if ($ emails ->isEmpty ()) {
@@ -73,8 +71,6 @@ public function handle()
73
71
$ progress ->finish ();
74
72
75
73
$ this ->result ($ emails );
76
-
77
- set_time_limit (0 );
78
74
}
79
75
80
76
/**
Original file line number Diff line number Diff line change @@ -122,18 +122,4 @@ public function the_failed_status_and_error_is_cleared_if_a_previously_failed_em
122
122
$ this ->assertFalse ($ email ->fresh ()->hasFailed ());
123
123
$ this ->assertEmpty ($ email ->fresh ()->getError ());
124
124
}
125
-
126
- /** @test */
127
- public function the_command_will_be_stopped_after_the_timeout ()
128
- {
129
- $ this ->assertEquals (0 , ini_get ('max_execution_time ' ));
130
-
131
- $ this ->artisan ('email:send ' );
132
-
133
- $ this ->assertEquals (300 , ini_get ('max_execution_time ' ));
134
-
135
- $ this ->artisan ('email:send ' , ['--timeout ' => 60 ]);
136
-
137
- $ this ->assertEquals (60 , ini_get ('max_execution_time ' ));
138
- }
139
125
}
You can’t perform that action at this time.
0 commit comments