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