File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 9
9
/.github export-ignore
10
10
/art export-ignore
11
11
/tests export-ignore
12
+ /workbench export-ignore
12
13
.editorconfig export-ignore
13
14
.gitattributes export-ignore
14
15
.gitignore export-ignore
15
16
CHANGELOG.md export-ignore
16
17
phpstan.neon.dist export-ignore
17
18
phpunit.xml.dist export-ignore
19
+ testbench.yaml export-ignore
18
20
UPGRADE.md export-ignore
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ use Illuminate \Process \Exceptions \ProcessFailedException ;
3
4
use Illuminate \Support \Facades \App ;
4
5
use Illuminate \Support \Facades \Config ;
5
6
use Illuminate \Support \Facades \Date ;
13
14
use Laravel \Pulse \Support \RedisClientException ;
14
15
use Tests \StorageFake ;
15
16
16
- beforeEach (fn () => Process::timeout (1 )->run ('redis-cli -p ' .Config::get ('database.redis.default.port ' ).' FLUSHALL ' )->throw ());
17
+ beforeEach (function () {
18
+ try {
19
+ Process::timeout (1 )->run ('redis-cli -p ' .Config::get ('database.redis.default.port ' ).' FLUSHALL ' )->throw ();
20
+ } catch (ProcessFailedException $ e ) {
21
+ $ this ->markTestSkipped ('Unable to run `redis-cli` ' );
22
+ }
23
+ });
17
24
18
25
it ('runs the same commands while ingesting entries ' , function ($ driver ) {
19
26
Config::set ('database.redis.client ' , $ driver );
You can’t perform that action at this time.
0 commit comments