File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 196196 $ worker ->runNextJob ('default ' );
197197
198198 $ logs = WPQueue::logs ()->recent (10 );
199- $ failed = array_filter ($ logs , fn ($ log ) => $ log ['status ' ] === 'failed ' );
199+ $ failed = array_filter ($ logs , fn ($ log ) => $ log ['status ' ] === 'failed ' );
200200
201201 expect ($ failed )->not ->toBeEmpty ();
202202});
211211
212212 // Проверяем что задача провалилась
213213 $ logs = WPQueue::logs ()->recent (10 );
214- $ failed = array_filter ($ logs , fn ($ log ) => $ log ['status ' ] === 'failed ' );
214+ $ failed = array_filter ($ logs , fn ($ log ) => $ log ['status ' ] === 'failed ' );
215215
216216 expect ($ failed )->not ->toBeEmpty ();
217217
222222
223223 // Проверяем что теперь 2 проваленные задачи
224224 $ logs = WPQueue::logs ()->recent (10 );
225- $ failed = array_filter ($ logs , fn ($ log ) => $ log ['status ' ] === 'failed ' );
225+ $ failed = array_filter ($ logs , fn ($ log ) => $ log ['status ' ] === 'failed ' );
226226
227227 expect (count ($ failed ))->toBe (2 );
228228});
You can’t perform that action at this time.
0 commit comments