From af8a81ad2735d2e799d4627bad2c69ce795ec860 Mon Sep 17 00:00:00 2001 From: "Hermann D. Schimpf" Date: Tue, 18 Apr 2023 11:59:21 -0400 Subject: [PATCH] Those test should run only if extension is available --- tests/ParallelTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/ParallelTest.php b/tests/ParallelTest.php index 669a2f4..b25a821 100644 --- a/tests/ParallelTest.php +++ b/tests/ParallelTest.php @@ -122,6 +122,7 @@ public function testProgressBar(): void { } } + /** @depends testThatParallelExtensionIsAvailable */ public function testThatTasksCanBeRemovedFromQueue(): void { Scheduler::using(Workers\LongRunningWorker::class); @@ -155,6 +156,7 @@ public function testThatTasksCanBeRemovedFromQueue(): void { Scheduler::removeAllTasks(); } + /** @depends testThatParallelExtensionIsAvailable */ public function testThatTasksCanBeCancelled(): void { Scheduler::using(Workers\LongRunningWorker::class); @@ -185,6 +187,7 @@ public function testThatTasksCanBeCancelled(): void { Scheduler::removeAllTasks(); } + /** @depends testThatParallelExtensionIsAvailable */ public function testThatChannelsDontOverlap(): void { Scheduler::using(Workers\WorkerWithSubWorkers::class);