File tree 1 file changed +5
-2
lines changed
src/Symfony/Component/Lock/Tests/Store
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ trait BlockingStoreTestTrait
22
22
{
23
23
/**
24
24
* @see AbstractStoreTest::getStore()
25
+ *
26
+ * @return StoreInterface
25
27
*/
26
28
abstract protected function getStore ();
27
29
@@ -38,8 +40,6 @@ public function testBlockingLocks()
38
40
// Amount a microsecond used to order async actions
39
41
$ clockDelay = 50000 ;
40
42
41
- /** @var StoreInterface $store */
42
- $ store = $ this ->getStore ();
43
43
$ key = new Key (uniqid (__METHOD__ , true ));
44
44
$ parentPID = posix_getpid ();
45
45
@@ -50,6 +50,7 @@ public function testBlockingLocks()
50
50
// Wait the start of the child
51
51
pcntl_sigwaitinfo (array (SIGHUP ), $ info );
52
52
53
+ $ store = $ this ->getStore ();
53
54
try {
54
55
// This call should failed given the lock should already by acquired by the child
55
56
$ store ->save ($ key );
@@ -71,6 +72,8 @@ public function testBlockingLocks()
71
72
} else {
72
73
// Block SIGHUP signal
73
74
pcntl_sigprocmask (SIG_BLOCK , array (SIGHUP ));
75
+
76
+ $ store = $ this ->getStore ();
74
77
try {
75
78
$ store ->save ($ key );
76
79
// send the ready signal to the parent
You can’t perform that action at this time.
0 commit comments