File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -109,10 +109,7 @@ public function delete(Key $key): void
109109
110110 /** @var non-empty-string $resource */
111111 $ resource = (string )$ key ;
112-
113- if (false === $ this ->lock ->release ($ resource , $ lockId )) {
114- throw new LockReleasingException ('RoadRunner. Failed to release lock ' );
115- }
112+ $ this ->lock ->release ($ resource , $ lockId );
116113 }
117114
118115 public function waitAndSave (Key $ key ): void
Original file line number Diff line number Diff line change 99use Spiral \RoadRunner \Symfony \Lock \RoadRunnerStore ;
1010use Spiral \RoadRunner \Symfony \Lock \TokenGeneratorInterface ;
1111use Symfony \Component \Lock \Exception \LockConflictedException ;
12- use Symfony \Component \Lock \Exception \LockReleasingException ;
1312use Symfony \Component \Lock \Key ;
1413
1514final class RoadRunnerStoreTest extends TestCase
@@ -152,9 +151,6 @@ public function testPutOffExpirationFail(): void
152151
153152 public function testDeleteFail (): void
154153 {
155- $ this ->expectException (LockReleasingException::class);
156- $ this ->expectExceptionMessage ('RoadRunner. Failed to release lock ' );
157-
158154 $ this ->rrLock ->expects (self ::once ())
159155 ->method ('release ' )
160156 ->with ('resource-name ' )
You can’t perform that action at this time.
0 commit comments