Skip to content

Commit 68d2168

Browse files
committed
Skips maxRuntime tests on Windows as this feature is not supported anyway
1 parent b553757 commit 68d2168

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/BackgroundJobTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ public function testMailShouldTriggerHelper()
222222
*/
223223
public function testCheckMaxRuntime()
224224
{
225+
if ($this->helper->getPlatform() !== Helper::UNIX) {
226+
$this->markTestSkipped("'maxRuntime' is not supported on Windows");
227+
}
228+
225229
$helper = $this->getMock('Jobby\Helper', ['getLockLifetime']);
226230
$helper->expects($this->once())
227231
->method('getLockLifetime')
@@ -244,6 +248,10 @@ public function testCheckMaxRuntime()
244248
*/
245249
public function testCheckMaxRuntimeShouldFailIsExceeded()
246250
{
251+
if ($this->helper->getPlatform() !== Helper::UNIX) {
252+
$this->markTestSkipped("'maxRuntime' is not supported on Windows");
253+
}
254+
247255
$helper = $this->getMock('Jobby\Helper', ['getLockLifetime']);
248256
$helper->expects($this->once())
249257
->method('getLockLifetime')

0 commit comments

Comments
 (0)