File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -132,15 +132,15 @@ public function testWakeUpWorkersSendsSigUsr1() {
132132 $ queuedProcessesTable ->saveOrFail ($ queuedProcess );
133133
134134 $ gotSignal = false ;
135- pcntl_signal (SIGUSR1 , function () use (&$ gotSignal ) {
135+ pcntl_signal (\ SIGUSR1 , function () use (&$ gotSignal ) {
136136 $ gotSignal = true ;
137137 });
138138
139139 $ queuedProcessesTable ->wakeUpWorkers ();
140140 pcntl_signal_dispatch ();
141141
142142 $ this ->assertTrue ($ gotSignal );
143- pcntl_signal (SIGUSR1 , SIG_DFL );
143+ pcntl_signal (\ SIGUSR1 , \ SIG_DFL );
144144 }
145145
146146 /**
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ public function testWorkerTimeoutHandling() {
221221 }
222222
223223 // Call the exit method which handles SIGTERM signal (timeout scenario)
224- $ this ->invokeMethod ($ processor , 'exit ' , [SIGTERM ]);
224+ $ this ->invokeMethod ($ processor , 'exit ' , [\ SIGTERM ]);
225225
226226 // Check that exit flag was set
227227 if ($ reflection ->hasProperty ('exit ' )) {
@@ -267,7 +267,7 @@ public function testWorkerTimeoutHandlingIntegration() {
267267 }
268268
269269 // Call the exit method which handles SIGTERM signal (timeout scenario)
270- $ this ->invokeMethod ($ processor , 'exit ' , [SIGTERM ]);
270+ $ this ->invokeMethod ($ processor , 'exit ' , [\ SIGTERM ]);
271271
272272 // Reload the job to check its status
273273 $ updatedJob = $ QueuedJobs ->get ($ job ->id );
You can’t perform that action at this time.
0 commit comments