File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ public function handle(): int
36
36
37
37
protected function execute (InputInterface $ input , OutputInterface $ output ): int
38
38
{
39
- try {
40
- if ($ this ->getIsolateOption () !== false && ! $ this ->isolationMutex ()->create ($ this )) {
41
- $ this ->comment (sprintf ('The [%s] command is already running. ' , $ this ->getName ()));
39
+ if ($ this ->getIsolateOption () !== false && ! $ this ->isolationMutex ()->create ($ this )) {
40
+ $ this ->comment (sprintf ('The [%s] command is already running. ' , $ this ->getName ()));
42
41
43
- return $ this ->isolatedStatusCode ();
44
- }
42
+ return $ this ->isolatedStatusCode ();
43
+ }
45
44
45
+ try {
46
46
return parent ::execute ($ input , $ output );
47
47
}
48
48
finally {
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ public function testCanRunIsolatedCommandIfNotBlocked()
47
47
->once ();
48
48
49
49
$ this ->mutex ->shouldReceive ('forget ' )
50
- ->never ()
51
50
->once ();
52
51
53
52
$ this ->runCommand ();
@@ -62,8 +61,7 @@ public function testCannotRunIsolatedCommandIfBlocked()
62
61
->once ();
63
62
64
63
$ this ->mutex ->shouldReceive ('forget ' )
65
- ->never ()
66
- ->once ();
64
+ ->never ();
67
65
68
66
$ this ->runCommand ();
69
67
@@ -77,7 +75,6 @@ public function testCanRunCommandAgainAfterOtherCommandFinished()
77
75
->twice ();
78
76
79
77
$ this ->mutex ->shouldReceive ('forget ' )
80
- ->never ()
81
78
->twice ();
82
79
83
80
$ this ->runCommand ();
You can’t perform that action at this time.
0 commit comments