Skip to content

Commit b9bf7a5

Browse files
committed
Fixes.
1 parent 6f8622e commit b9bf7a5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/TestCase/Model/Table/QueueProcessesTableTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
/**

tests/TestCase/Queue/ProcessorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)